Scalr\Upgrade\Updates\Update20160224125415::run1 PHP Method

run1() protected method

protected run1 ( $stage )
    protected function run1($stage)
    {
        $this->db->BeginTrans();
        try {
            $in = implode("','", [self::RESOURCE_DEPLOYMENTS_APPLICATIONS, self::RESOURCE_DEPLOYMENTS_SOURCES, self::RESOURCE_DEPLOYMENTS_TASKS]);
            $this->db->Execute("DELETE FROM `acl_role_resources` WHERE `resource_id` IN ('{$in}')");
            $this->db->Execute("DELETE FROM `acl_account_role_resources` WHERE `resource_id` IN ('{$in}')");
            $this->db->Execute("DELETE FROM `farm_role_settings` WHERE `name` LIKE 'dm.%'");
            $this->db->CommitTrans();
        } catch (Exception $e) {
            $this->db->RollbackTrans();
            throw $e;
        }
    }