protected function run2($stage)
{
$this->console->out("Creating table of scalr_services");
$this->db->Execute("\n CREATE TABLE IF NOT EXISTS `scalr_services` (\n `name` VARCHAR(64) NOT NULL COMMENT 'The unique name of the service',\n `num_workers` INT NOT NULL DEFAULT 0 COMMENT 'The last number of running workers',\n `num_tasks` INT NOT NULL DEFAULT 0 COMMENT 'The number of processed tasks on last run',\n `last_start` DATETIME DEFAULT NULL COMMENT 'Time of the last start',\n `last_finish` DATETIME DEFAULT NULL COMMENT 'Time of the last finish',\n `state` TINYINT UNSIGNED NULL COMMENT 'State of the service',\n PRIMARY KEY (`name`),\n KEY `idx_state` (`state`)\n ) ENGINE = InnoDB DEFAULT CHARSET=utf8\n COMMENT = 'Scalr services';\n ");
}