Schema: make downtime_history#{start,end}_time NOT NULL

This commit is contained in:
Alexander A. Klimov 2019-11-26 11:56:38 +01:00
parent ad7c7f621d
commit 8f78e83fd5

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,