Files

4 lines
251 B
SQL
Raw Permalink Normal View History

-- Deliberately fail on duplicate versioned evidence rather than deleting it.
ALTER TABLE native_graph_records DROP CONSTRAINT IF EXISTS native_graph_records_pkey;
ALTER TABLE native_graph_records ADD PRIMARY KEY (tenant_id, source_table, legacy_id);