1 -- When modifying this file, make sure to also update
2 -- the version if necessary (set last in the file)
4 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
6 CREATE TABLE IF NOT EXISTS `avail_config` (
7 `id` int(11) NOT NULL auto_increment,
8 `user` varchar(255) NOT NULL,
9 `report_name` varchar(255) NOT NULL,
11 `created` timestamp NOT NULL default CURRENT_TIMESTAMP,
12 `rpttimeperiod` varchar(75) NOT NULL,
13 `report_period` varchar(50) NOT NULL,
14 `start_time` int(11) NOT NULL default '0',
15 `end_time` int(11) NOT NULL default '0',
16 `report_type` varchar(30) NOT NULL,
17 `initialassumedhoststate` int(11) NOT NULL default '0',
18 `initialassumedservicestate` int(11) NOT NULL default '0',
19 `assumeinitialstates` int(11) NOT NULL default '0',
20 `scheduleddowntimeasuptime` int(11) NOT NULL default '0',
21 `assumestatesduringnotrunning` int(11) NOT NULL default '0',
22 `includesoftstates` int(11) NOT NULL default '0',
23 `updated` timestamp NOT NULL default '0000-00-00 00:00:00',
26 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
28 CREATE TABLE IF NOT EXISTS avail_config_objects (
29 id int(11) NOT NULL auto_increment,
30 avail_id int(11) NOT NULL default '0',
31 `name` varchar(255) NOT NULL,
33 KEY avail_id (avail_id)
34 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
36 CREATE TABLE IF NOT EXISTS avail_db_version (
37 version int(11) NOT NULL default '0'
38 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
39 INSERT INTO avail_db_version VALUES(1);