schema/mysql: fix import source constraints
This commit is contained in:
parent
f18e1b6a5f
commit
2706af6976
|
@ -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
|
CONSTRAINT import_run_source
|
||||||
FOREIGN KEY import_source (source_id)
|
FOREIGN KEY import_source (source_id)
|
||||||
REFERENCES import_source (id)
|
REFERENCES import_source (id)
|
||||||
ON DELETE RESTRICT
|
ON DELETE CASCADE
|
||||||
ON UPDATE CASCADE,
|
ON UPDATE RESTRICT,
|
||||||
CONSTRAINT import_run_rowset
|
CONSTRAINT import_run_rowset
|
||||||
FOREIGN KEY rowset (rowset_checksum)
|
FOREIGN KEY rowset (rowset_checksum)
|
||||||
REFERENCES imported_rowset (checksum)
|
REFERENCES imported_rowset (checksum)
|
||||||
|
|
Loading…
Reference in New Issue