diff --git a/lib/db_ido_mysql/schema/mysql.sql b/lib/db_ido_mysql/schema/mysql.sql index 7f6aa8672..0e61bce7e 100644 --- a/lib/db_ido_mysql/schema/mysql.sql +++ b/lib/db_ido_mysql/schema/mysql.sql @@ -666,7 +666,7 @@ CREATE TABLE IF NOT EXISTS icinga_hosts ( high_flap_threshold double default '0', process_performance_data smallint default 0, freshness_checks_enabled smallint default 0, - freshness_threshold smallint default 0, + freshness_threshold int default 0, passive_checks_enabled smallint default 0, event_handler_enabled smallint default 0, active_checks_enabled smallint default 0, @@ -1160,7 +1160,7 @@ CREATE TABLE IF NOT EXISTS icinga_services ( high_flap_threshold double default '0', process_performance_data smallint default 0, freshness_checks_enabled smallint default 0, - freshness_threshold smallint default 0, + freshness_threshold int default 0, passive_checks_enabled smallint default 0, event_handler_enabled smallint default 0, active_checks_enabled smallint default 0, diff --git a/lib/db_ido_mysql/schema/upgrade/2.4.0.sql b/lib/db_ido_mysql/schema/upgrade/2.4.0.sql index d26564602..236eb1906 100644 --- a/lib/db_ido_mysql/schema/upgrade/2.4.0.sql +++ b/lib/db_ido_mysql/schema/upgrade/2.4.0.sql @@ -7,6 +7,9 @@ -- Please check http://docs.icinga.org for upgrading information! -- ----------------------------------------- +-- ----------------------------------------- +-- #9286 - zone tables +-- ----------------------------------------- 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'; @@ -31,6 +34,13 @@ CREATE TABLE IF NOT EXISTS icinga_zonestatus ( ) ENGINE=InnoDB COMMENT='Zone status'; +-- ----------------------------------------- +-- #9576 - freshness_threshold +-- ----------------------------------------- + +ALTER TABLE icinga_services MODIFY freshness_threshold int; +ALTER TABLE icinga_hosts MODIFY freshness_threshold int; + -- ----------------------------------------- -- update dbversion -- -----------------------------------------