- Remove all company_id references from dev-seed.ts (removed in 0021) - seedPermissions now syncs role-permission assignments for system roles when new permissions are added (e.g., vault.view assigned to admin) - Fix enum migration: use text cast workaround for PostgreSQL's "unsafe use of new enum value" error on fresh DB creation
4 lines
222 B
SQL
4 lines
222 B
SQL
-- Use text cast to avoid the "unsafe use of new enum value" error
|
|
-- when 0019 (ADD VALUE) and this run in the same session
|
|
ALTER TABLE "repair_ticket" ALTER COLUMN "status" SET DEFAULT 'new'::text::repair_ticket_status;
|