Fix overflow in freshness_threshold column (smallint) w/ DB IDO MySQL

fixes #9576
This commit is contained in:
Michael Friedrich 2015-07-14 18:20:08 +02:00
parent 769594fa4f
commit dcef213c8f
2 changed files with 12 additions and 2 deletions

View File

@ -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,

View File

@ -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
-- -----------------------------------------