fix(migration): disable foreign keys for spec version migration
arcad/emissary/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2024-03-13 09:21:50 +01:00
parent b5c36f1f17
commit cec5c783fe
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,6 @@
-- Add unique constraint on name/version to specs
PRAGMA foreign_keys = 0;
ALTER TABLE specs
RENAME TO _specs;
@ -34,3 +36,5 @@ FROM
_specs;
DROP TABLE _specs;
PRAGMA foreign_keys = 1;