Merge pull request #29 from Icinga/bugfix/downtime_history-start_time-end_time

Schema: make downtime_history#{start,end}_time NOT NULL
This commit is contained in:
Noah Hilverling 2019-11-26 14:16:54 +01:00 committed by GitHub
commit 7cb68fba76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -858,8 +858,8 @@ CREATE TABLE downtime_history (
flexible_duration bigint(20) unsigned NOT NULL,
scheduled_start_time bigint(20) unsigned NOT NULL,
scheduled_end_time bigint(20) unsigned NOT NULL,
start_time bigint(20) unsigned DEFAULT NULL COMMENT 'Time when the host went into a problem state during the downtimes timeframe',
end_time bigint(20) unsigned DEFAULT NULL COMMENT 'Problem state assumed: scheduled_end_time if fixed, start_time + duration otherwise',
start_time bigint(20) unsigned NOT NULL COMMENT 'Time when the host went into a problem state during the downtimes timeframe',
end_time bigint(20) unsigned NOT NULL COMMENT 'Problem state assumed: scheduled_end_time if fixed, start_time + duration otherwise',
has_been_cancelled enum('y', 'n') NOT NULL,
trigger_time bigint(20) unsigned NOT NULL,
cancel_time bigint(20) unsigned NULL DEFAULT NULL,