mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Fix overflow in freshness_threshold column (smallint) w/ DB IDO MySQL
fixes #9576
This commit is contained in:
parent
769594fa4f
commit
dcef213c8f
@ -666,7 +666,7 @@ CREATE TABLE IF NOT EXISTS icinga_hosts (
|
|||||||
high_flap_threshold double default '0',
|
high_flap_threshold double default '0',
|
||||||
process_performance_data smallint default 0,
|
process_performance_data smallint default 0,
|
||||||
freshness_checks_enabled 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,
|
passive_checks_enabled smallint default 0,
|
||||||
event_handler_enabled smallint default 0,
|
event_handler_enabled smallint default 0,
|
||||||
active_checks_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',
|
high_flap_threshold double default '0',
|
||||||
process_performance_data smallint default 0,
|
process_performance_data smallint default 0,
|
||||||
freshness_checks_enabled 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,
|
passive_checks_enabled smallint default 0,
|
||||||
event_handler_enabled smallint default 0,
|
event_handler_enabled smallint default 0,
|
||||||
active_checks_enabled smallint default 0,
|
active_checks_enabled smallint default 0,
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
-- Please check http://docs.icinga.org for upgrading information!
|
-- 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_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';
|
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';
|
) 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
|
-- update dbversion
|
||||||
-- -----------------------------------------
|
-- -----------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user