mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
DB IDO: Fix overflow in current_notification_number column (MySQL)
fixes #11962
This commit is contained in:
parent
f2edbc59cf
commit
067cb8d283
@ -735,7 +735,7 @@ CREATE TABLE IF NOT EXISTS icinga_hoststatus (
|
|||||||
notifications_enabled smallint default 0,
|
notifications_enabled smallint default 0,
|
||||||
problem_has_been_acknowledged smallint default 0,
|
problem_has_been_acknowledged smallint default 0,
|
||||||
acknowledgement_type smallint default 0,
|
acknowledgement_type smallint default 0,
|
||||||
current_notification_number smallint default 0,
|
current_notification_number int unsigned default 0,
|
||||||
passive_checks_enabled smallint default 0,
|
passive_checks_enabled smallint default 0,
|
||||||
active_checks_enabled smallint default 0,
|
active_checks_enabled smallint default 0,
|
||||||
event_handler_enabled smallint default 0,
|
event_handler_enabled smallint default 0,
|
||||||
@ -1223,7 +1223,7 @@ CREATE TABLE IF NOT EXISTS icinga_servicestatus (
|
|||||||
notifications_enabled smallint default 0,
|
notifications_enabled smallint default 0,
|
||||||
problem_has_been_acknowledged smallint default 0,
|
problem_has_been_acknowledged smallint default 0,
|
||||||
acknowledgement_type smallint default 0,
|
acknowledgement_type smallint default 0,
|
||||||
current_notification_number smallint default 0,
|
current_notification_number int unsigned default 0,
|
||||||
passive_checks_enabled smallint default 0,
|
passive_checks_enabled smallint default 0,
|
||||||
active_checks_enabled smallint default 0,
|
active_checks_enabled smallint default 0,
|
||||||
event_handler_enabled smallint default 0,
|
event_handler_enabled smallint default 0,
|
||||||
|
@ -21,6 +21,13 @@ ALTER TABLE icinga_servicestatus MODIFY COLUMN check_source varchar(255) charact
|
|||||||
CREATE INDEX idx_comments_object_id on icinga_comments(object_id);
|
CREATE INDEX idx_comments_object_id on icinga_comments(object_id);
|
||||||
CREATE INDEX idx_scheduleddowntime_object_id on icinga_scheduleddowntime(object_id);
|
CREATE INDEX idx_scheduleddowntime_object_id on icinga_scheduleddowntime(object_id);
|
||||||
|
|
||||||
|
-- -----------------------------------------
|
||||||
|
-- #11962
|
||||||
|
-- -----------------------------------------
|
||||||
|
|
||||||
|
ALTER TABLE icinga_hoststatus MODIFY COLUMN current_notification_number int unsigned default 0;
|
||||||
|
ALTER TABLE icinga_servicestatus MODIFY COLUMN current_notification_number int unsigned default 0;
|
||||||
|
|
||||||
-- -----------------------------------------
|
-- -----------------------------------------
|
||||||
-- set dbversion
|
-- set dbversion
|
||||||
-- -----------------------------------------
|
-- -----------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user