Files
xinmi/migrations/versioned/000203_graph_resource_versions.down.sql
T

4 lines
251 B
SQL
Raw 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);