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

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

protected run1 ( $stage )
    protected function run1($stage)
    {
        $this->console->out("Adding 'account_id' to the role_categories table...");
        $this->db->Execute("ALTER TABLE `role_categories` ADD COLUMN `account_id` INT(11) NULL AFTER `id`");
        $this->console->out("Set account_id where env_id is not null");
        $this->db->Execute("\n            UPDATE `role_categories` rc\n            INNER JOIN `client_environments` ce ON rc.env_id = ce.id\n            SET rc.account_id = ce.client_id");
    }