Compare commits

...

1 Commits

Author SHA1 Message Date
4a1a434556 fix(migrations): disable foreign keys for migrating tenants
All checks were successful
arcad/emissary/pipeline/head This commit looks good
2024-03-04 09:09:44 +01:00

View File

@ -1,3 +1,5 @@
PRAGMA foreign_keys = 0;
CREATE TABLE tenants (
id TEXT PRIMARY KEY,
label TEXT NOT NULL,
@ -49,4 +51,6 @@ CREATE TABLE specs
INSERT INTO specs SELECT id, agent_id, name, revision, data, created_at, updated_at, 0 FROM _specs;
DROP TABLE _specs;
DROP TABLE _specs;
PRAGMA foreign_keys = 1;