mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
schema/mysql: fix import source constraints
This commit is contained in:
parent
f18e1b6a5f
commit
2706af6976
7
schema/mysql-changes/upgrade_42.sql
Normal file
7
schema/mysql-changes/upgrade_42.sql
Normal file
@ -0,0 +1,7 @@
|
||||
ALTER TABLE import_run DROP FOREIGN KEY import_run_source;
|
||||
ALTER TABLE import_run ADD CONSTRAINT import_run_source
|
||||
FOREIGN KEY import_source (source_id)
|
||||
REFERENCES import_source (id)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE RESTRICT;
|
||||
|
@ -877,8 +877,8 @@ CREATE TABLE import_run (
|
||||
CONSTRAINT import_run_source
|
||||
FOREIGN KEY import_source (source_id)
|
||||
REFERENCES import_source (id)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE CASCADE,
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE RESTRICT,
|
||||
CONSTRAINT import_run_rowset
|
||||
FOREIGN KEY rowset (rowset_checksum)
|
||||
REFERENCES imported_rowset (checksum)
|
||||
|
Loading…
x
Reference in New Issue
Block a user