7 lines
385 B
PL/PgSQL
7 lines
385 B
PL/PgSQL
BEGIN;
|
|
-- Legacy requests retain NULL. Canonical operation identity cannot be replayed
|
|
-- under another transport key to admit a second paid execution.
|
|
ALTER TABLE canvas_ai_runs ADD COLUMN logical_operation_id uuid;
|
|
CREATE UNIQUE INDEX canvas_ai_logical_operation ON canvas_ai_runs(project,workspace_id,account_id,logical_operation_id) WHERE logical_operation_id IS NOT NULL;
|
|
COMMIT;
|