fix(migration): disable foreign keys for spec version migration
arcad/emissary/pipeline/head This commit looks good
Details
arcad/emissary/pipeline/head This commit looks good
Details
This commit is contained in:
parent
b5c36f1f17
commit
cec5c783fe
|
@ -1,4 +1,6 @@
|
||||||
-- Add unique constraint on name/version to specs
|
-- Add unique constraint on name/version to specs
|
||||||
|
PRAGMA foreign_keys = 0;
|
||||||
|
|
||||||
ALTER TABLE specs
|
ALTER TABLE specs
|
||||||
RENAME TO _specs;
|
RENAME TO _specs;
|
||||||
|
|
||||||
|
@ -33,4 +35,6 @@ SELECT
|
||||||
FROM
|
FROM
|
||||||
_specs;
|
_specs;
|
||||||
|
|
||||||
DROP TABLE _specs;
|
DROP TABLE _specs;
|
||||||
|
|
||||||
|
PRAGMA foreign_keys = 1;
|
Loading…
Reference in New Issue