mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-26 04:25:46 +02:00
Co-authored-by: Eve <eve@multica-ai.local> Co-authored-by: multica-agent <github@multica.ai>
6 lines
304 B
SQL
6 lines
304 B
SQL
-- This is intentionally a single statement: concurrent index creation cannot
|
|
-- run in a transaction or a multi-command migration.
|
|
CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS agent_system_identity_unique
|
|
ON agent (workspace_id, owner_id, runtime_id, system_key)
|
|
WHERE system_key IS NOT NULL;
|