Scalr\Upgrade\Updates\Update20150505143635::run1 PHP Метод

run1() защищенный Метод

protected run1 ( $stage )
    protected function run1($stage)
    {
        $this->console->notice('Adding field to table farms');
        $this->db->Execute("ALTER TABLE farms ADD `team_id` int(11) NULL DEFAULT NULL");
        $this->console->notice('Adding foreign key');
        $this->db->Execute("\n            ALTER TABLE farms ADD CONSTRAINT `farms_account_teams_id`\n                FOREIGN KEY (`team_id`) REFERENCES `account_teams` (`id`)\n                ON DELETE SET NULL\n                ON UPDATE NO ACTION\n        ");
    }