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 sla_config (
7 id int(11) NOT NULL auto_increment,
8 sla_name varchar(255) NOT NULL,
10 created timestamp NOT NULL default CURRENT_TIMESTAMP,
11 rpttimeperiod varchar(75) NOT NULL,
12 report_period varchar(50) NOT NULL,
13 start_time int(11) NOT NULL default '0',
14 end_time int(11) NOT NULL default '0',
15 report_type varchar(30) NOT NULL,
16 initialassumedhoststate int(11) NOT NULL default '0',
17 initialassumedservicestate int(11) NOT NULL default '0',
18 assumeinitialstates int(11) NOT NULL default '0',
19 scheduleddowntimeasuptime int(11) NOT NULL default '0',
20 assumestatesduringnotrunning int(11) NOT NULL default '0',
21 includesoftstates int(11) NOT NULL default '0',
22 updated timestamp NOT NULL default '0000-00-00 00:00:00',
24 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
26 CREATE TABLE sla_config_objects (
27 id int(11) NOT NULL auto_increment,
28 sla_id int(11) NOT NULL default '0',
29 `name` varchar(255) NOT NULL,
32 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
34 CREATE TABLE sla_periods (
35 id int(11) NOT NULL auto_increment,
36 sla_id int(11) NOT NULL default '0',
37 `name` varchar(20) NOT NULL,
38 `value` float NOT NULL default '0',
41 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
43 CREATE TABLE sla_db_version (
44 version int(11) NOT NULL default '0'
45 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
46 INSERT INTO sla_db_version VALUES(1);