mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
10 lines
289 B
SQL
10 lines
289 B
SQL
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;
|
|
|