2015-04-09 10:30:20 +02:00
|
|
|
-- -----------------------------------------
|
2015-05-04 11:34:21 +02:00
|
|
|
-- upgrade path for Icinga 2.4.0
|
2015-04-09 10:30:20 +02:00
|
|
|
--
|
|
|
|
-- -----------------------------------------
|
|
|
|
-- Copyright (c) 2015 Icinga Development Team (http://www.icinga.org)
|
|
|
|
--
|
|
|
|
-- Please check http://docs.icinga.org for upgrading information!
|
|
|
|
-- -----------------------------------------
|
|
|
|
|
2015-07-14 18:20:08 +02:00
|
|
|
-- -----------------------------------------
|
|
|
|
-- #9286 - zone tables
|
|
|
|
-- -----------------------------------------
|
2015-06-17 15:45:45 +02:00
|
|
|
|
|
|
|
ALTER TABLE icinga_endpoints ADD COLUMN zone_object_id bigint(20) unsigned DEFAULT '0';
|
|
|
|
ALTER TABLE icinga_endpointstatus ADD COLUMN zone_object_id bigint(20) unsigned DEFAULT '0';
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS icinga_zones (
|
|
|
|
zone_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
instance_id bigint unsigned default 0,
|
|
|
|
zone_object_id bigint(20) unsigned DEFAULT '0',
|
|
|
|
config_type smallint(6) DEFAULT '0',
|
|
|
|
parent_zone_object_id bigint(20) unsigned DEFAULT '0',
|
|
|
|
is_global smallint(6),
|
|
|
|
PRIMARY KEY (zone_id)
|
|
|
|
) ENGINE=InnoDB COMMENT='Zone configuration';
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS icinga_zonestatus (
|
|
|
|
zonestatus_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
instance_id bigint unsigned default 0,
|
|
|
|
zone_object_id bigint(20) unsigned DEFAULT '0',
|
|
|
|
status_update_time timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
|
|
parent_zone_object_id bigint(20) unsigned DEFAULT '0',
|
|
|
|
PRIMARY KEY (zonestatus_id)
|
|
|
|
) ENGINE=InnoDB COMMENT='Zone status';
|
|
|
|
|
|
|
|
|
2015-07-14 18:20:08 +02:00
|
|
|
-- -----------------------------------------
|
|
|
|
-- #9576 - freshness_threshold
|
|
|
|
-- -----------------------------------------
|
|
|
|
|
|
|
|
ALTER TABLE icinga_services MODIFY freshness_threshold int;
|
|
|
|
ALTER TABLE icinga_hosts MODIFY freshness_threshold int;
|
|
|
|
|
2015-04-09 10:30:20 +02:00
|
|
|
-- -----------------------------------------
|
|
|
|
-- update dbversion
|
|
|
|
-- -----------------------------------------
|
|
|
|
|
|
|
|
INSERT INTO icinga_dbversion (name, version, create_time, modify_time) VALUES ('idoutils', '1.14.0', NOW(), NOW()) ON DUPLICATE KEY UPDATE version='1.14.0', modify_time=NOW();
|