From 4e282f503dc1605abdd761b44b38b27cb827eea5 Mon Sep 17 00:00:00 2001 From: Mitchell R Date: Wed, 27 May 2026 03:48:27 +0200 Subject: [PATCH] fix: add 'ablesign' to layout_cells content_type CHECK constraint Co-Authored-By: Claude Opus 4.6 (1M context) --- server/src/shared/db/migrations-pg.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/shared/db/migrations-pg.ts b/server/src/shared/db/migrations-pg.ts index ff2d6f2..d599d8c 100644 --- a/server/src/shared/db/migrations-pg.ts +++ b/server/src/shared/db/migrations-pg.ts @@ -721,4 +721,6 @@ export const TENANT_MIGRATIONS: readonly string[] = [ `ALTER TABLE entities ADD CONSTRAINT entities_type_check CHECK(type IN ('camera', 'html', 'web', 'dashboard', 'ablesign'))`, `ALTER TABLE entities ADD COLUMN IF NOT EXISTS ablesign_screen_id TEXT REFERENCES ablesign_screens(id) ON DELETE CASCADE`, `ALTER TABLE entities ADD COLUMN IF NOT EXISTS managed BOOLEAN NOT NULL DEFAULT false`, + `ALTER TABLE layout_cells DROP CONSTRAINT IF EXISTS layout_cells_content_type_check`, + `ALTER TABLE layout_cells ADD CONSTRAINT layout_cells_content_type_check CHECK(content_type IN ('none', 'camera', 'web', 'html', 'ablesign'))`, ];