schema/mysql: fix timeperiod relation name

This commit is contained in:
Thomas Gelf 2016-02-27 01:23:47 +01:00
parent af5d5d231a
commit 56dd2b44c4
3 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ class IcingaNotification extends IcingaObject
// 'user_groups' => null,
'times_begin' => null,
'times_end' => null,
'command' => null,
'command_id' => null,
'notification_interval' => null,
'period_id' => null,
'zone_id' => null,

View File

@ -9,7 +9,7 @@ CREATE TABLE icinga_notification (
times_end INT(10) UNSIGNED DEFAULT NULL,
notification_interval INT(10) UNSIGNED DEFAULT NULL,
command_id INT(10) UNSIGNED DEFAULT NULL,
timeperiod_id INT(10) UNSIGNED DEFAULT NULL,
period_id INT(10) UNSIGNED DEFAULT NULL,
zone_id INT(10) UNSIGNED DEFAULT NULL,
PRIMARY KEY (id),
CONSTRAINT icinga_notification_host
@ -27,8 +27,8 @@ CREATE TABLE icinga_notification (
REFERENCES icinga_command (id)
ON DELETE RESTRICT
ON UPDATE CASCADE,
CONSTRAINT icinga_notification_timeperiod
FOREIGN KEY timeperiod (timeperiod_id)
CONSTRAINT icinga_notification_period
FOREIGN KEY period (period_id)
REFERENCES icinga_timeperiod (id)
ON DELETE RESTRICT
ON UPDATE CASCADE,

View File

@ -907,7 +907,7 @@ CREATE TABLE icinga_notification (
times_end INT(10) UNSIGNED DEFAULT NULL,
notification_interval INT(10) UNSIGNED DEFAULT NULL,
command_id INT(10) UNSIGNED DEFAULT NULL,
timeperiod_id INT(10) UNSIGNED DEFAULT NULL,
period_id INT(10) UNSIGNED DEFAULT NULL,
zone_id INT(10) UNSIGNED DEFAULT NULL,
PRIMARY KEY (id),
CONSTRAINT icinga_notification_host
@ -925,8 +925,8 @@ CREATE TABLE icinga_notification (
REFERENCES icinga_command (id)
ON DELETE RESTRICT
ON UPDATE CASCADE,
CONSTRAINT icinga_notification_timeperiod
FOREIGN KEY timeperiod (timeperiod_id)
CONSTRAINT icinga_notification_period
FOREIGN KEY period (period_id)
REFERENCES icinga_timeperiod (id)
ON DELETE RESTRICT
ON UPDATE CASCADE,