Files
probo/pkg/coredata/migrations/20250401T144700Z.sql
2025-04-01 18:02:43 +02:00

6 lines
262 B
SQL

ALTER TABLE tasks ADD COLUMN reference_id TEXT DEFAULT '';
ALTER TABLE tasks ALTER COLUMN reference_id SET NOT NULL;
ALTER TABLE tasks ALTER COLUMN reference_id DROP DEFAULT;
ALTER TABLE tasks ADD CONSTRAINT tasks_reference_id_unique UNIQUE (id, reference_id);