00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 $installer = $this;
00028
00029 $installer->startSetup();
00030
00031 $installer->run("
00032
00033 DROP TABLE IF EXISTS {$this->getTable('cron_schedule')};
00034 CREATE TABLE {$this->getTable('cron_schedule')} (
00035 `schedule_id` int(10) unsigned NOT NULL auto_increment,
00036 `job_code` varchar(255) NOT NULL default '0',
00037 `status` enum('pending','running','success','missed','error') NOT NULL default 'pending',
00038 `messages` text,
00039 `created_at` datetime NOT NULL default '0000-00-00 00:00:00',
00040 `scheduled_at` datetime NOT NULL default '0000-00-00 00:00:00',
00041 `executed_at` datetime NOT NULL default '0000-00-00 00:00:00',
00042 `finished_at` datetime NOT NULL default '0000-00-00 00:00:00',
00043 PRIMARY KEY (`schedule_id`),
00044 KEY `task_name` (`job_code`),
00045 KEY `scheduled_at` (`scheduled_at`,`status`)
00046 ) ENGINE=InnoDB DEFAULT CHARSET=utf8
00047
00048 ");
00049
00050 $installer->endSetup();