blob: d6a54cbd4cd2704adfca92ea62d29ba406b207b2 (
plain)
1
2
3
4
5
6
7
8
9
|
ALTER TABLE icinga_service
ADD COLUMN host_id INT(10) UNSIGNED DEFAULT NULL AFTER display_name,
ADD UNIQUE KEY object_key (object_name, host_id),
ADD CONSTRAINT icinga_host
FOREIGN KEY host (host_id)
REFERENCES icinga_host (id)
ON DELETE SET NULL
ON UPDATE CASCADE;
|