From cec5c783fe707d4fbaac267605a6cac246848308 Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 13 Mar 2024 09:21:50 +0100 Subject: [PATCH] fix(migration): disable foreign keys for spec version migration --- migrations/sqlite/0000005_spec_version.up.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/migrations/sqlite/0000005_spec_version.up.sql b/migrations/sqlite/0000005_spec_version.up.sql index 614360e..d344d2e 100644 --- a/migrations/sqlite/0000005_spec_version.up.sql +++ b/migrations/sqlite/0000005_spec_version.up.sql @@ -1,4 +1,6 @@ -- Add unique constraint on name/version to specs +PRAGMA foreign_keys = 0; + ALTER TABLE specs RENAME TO _specs; @@ -33,4 +35,6 @@ SELECT FROM _specs; -DROP TABLE _specs; \ No newline at end of file +DROP TABLE _specs; + +PRAGMA foreign_keys = 1; \ No newline at end of file