fix(migrations): disable foreign keys for migrating tenants
arcad/emissary/pipeline/head This commit looks good
Details
arcad/emissary/pipeline/head This commit looks good
Details
This commit is contained in:
parent
76718722cc
commit
4a1a434556
|
@ -1,3 +1,5 @@
|
|||
PRAGMA foreign_keys = 0;
|
||||
|
||||
CREATE TABLE tenants (
|
||||
id TEXT PRIMARY KEY,
|
||||
label TEXT NOT NULL,
|
||||
|
@ -50,3 +52,5 @@ CREATE TABLE specs
|
|||
INSERT INTO specs SELECT id, agent_id, name, revision, data, created_at, updated_at, 0 FROM _specs;
|
||||
|
||||
DROP TABLE _specs;
|
||||
|
||||
PRAGMA foreign_keys = 1;
|
Loading…
Reference in New Issue