1 CREATE TABLE IF NOT EXISTS `scheduled_reports` (
2 `id` int(11) NOT NULL auto_increment,
3 `user` varchar(255) NOT NULL,
4 `report_type_id` int(11) NOT NULL default '0',
5 `report_id` int(11) NOT NULL default '0',
6 `recipients` TEXT NOT NULL,
7 `description` TEXT NOT NULL,
8 `period_id` int(11) NOT NULL default '0',
9 `filename` varchar(255) NOT NULL,
11 KEY `report_type_id` (`report_type_id`),
13 ) COLLATE latin1_general_cs;
15 CREATE TABLE IF NOT EXISTS `scheduled_report_types` (
16 `id` int(11) NOT NULL auto_increment,
17 `name` varchar(255) NOT NULL,
18 `script_reports_path` varchar(255) NOT NULL,
19 `script_reports_run` varchar(255) NOT NULL,
20 `identifier` varchar(50) NOT NULL,
22 KEY `identifier` (`identifier`)
23 ) COLLATE latin1_general_cs;
26 CREATE TABLE IF NOT EXISTS scheduled_reports_db_version (
27 version varchar(10) NOT NULL
28 ) COLLATE latin1_general_cs;
30 INSERT INTO scheduled_reports_db_version VALUES('5');
32 INSERT INTO `scheduled_report_types` (`id`, `identifier`) VALUES
36 CREATE TABLE IF NOT EXISTS `scheduled_report_periods` (
37 `id` int(11) NOT NULL auto_increment,
38 `periodname` varchar(100) NOT NULL,
40 ) COLLATE latin1_general_cs;
42 INSERT INTO `scheduled_report_periods` (`id`, `periodname`) VALUES