mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-28 22:17:48 +02:00
Co-authored-by: Eve <eve@multica-ai.local> Co-authored-by: multica-agent <github@multica.ai>
6 lines
345 B
SQL
6 lines
345 B
SQL
-- Enforce case-insensitive property-name uniqueness without blocking writes.
|
|
-- Keep this as the migration's only statement: PostgreSQL rejects CREATE INDEX
|
|
-- CONCURRENTLY inside a transaction or multi-command string.
|
|
CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS idx_issue_property_ws_name
|
|
ON issue_property (workspace_id, LOWER(name));
|