wiki.techinc.nl/maintenance/archives/patch-archive-ar_rev_id-unique.sql
Brad Jorsch c84083e413 Make archive.ar_rev_id unique
To follow up I39b0825c, this change replaces the existing non-unique
index on the column with a unique index, to help avoid some of these
sort of bugs in the future.

Bug: T193180
Change-Id: I932478c9c6a13210bc9dff75286d0f08da56682c
2018-06-04 08:52:06 +00:00

4 lines
150 B
SQL

-- T193180: ar_rev_id should be unique
CREATE UNIQUE INDEX /*i*/ar_revid_uniq ON /*_*/archive (ar_rev_id);
DROP INDEX /*i*/ar_revid ON /*_*/archive;