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 SET NAMES utf8;
00034
00035 SET SQL_MODE='';
00036
00037 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
00038 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO';
00039
00040 /*Table structure for table `cron_schedule` */
00041
00042 -- DROP TABLE IF EXISTS {$this->getTable('cron_schedule')};
00043
00044 CREATE TABLE {$this->getTable('cron_schedule')} (
00045 `schedule_id` int(10) unsigned NOT NULL auto_increment,
00046 `task_name` int(10) unsigned NOT NULL default '0',
00047 `schedule_status` tinyint(4) NOT NULL default '0',
00048 `schedule_type` tinyint(4) NOT NULL default '0',
00049 `schedule_cmd` text NOT NULL,
00050 `schedule_comments` text NOT NULL,
00051 `created_at` datetime NOT NULL default '0000-00-00 00:00:00',
00052 `scheduled_at` datetime NOT NULL default '0000-00-00 00:00:00',
00053 `executed_at` datetime NOT NULL default '0000-00-00 00:00:00',
00054 `finished_at` datetime NOT NULL default '0000-00-00 00:00:00',
00055 PRIMARY KEY (`schedule_id`),
00056 KEY `task_name` (`task_name`),
00057 KEY `scheduled_at` (`scheduled_at`,`schedule_status`)
00058 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
00059
00060 /*Data for the table `cron_schedule` */
00061
00062 SET SQL_MODE=@OLD_SQL_MODE;
00063 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
00064
00065 ");
00066
00067 $installer->endSetup();