Commit graph

2 commits

Author SHA1 Message Date
Marks Polakovs
c210066e6d Improve idempotency of postgres index upgrades
Change DROP INDEX statements to DROP INDEX IF EXISTS, meaning the
upgrade does not fail if they do not already exist (which is the desired
end state anyway).

Bug: T336868
Change-Id: Id073beda84065b067994a7405a78d484346b550d
2023-05-17 14:58:41 +01:00
Amir Sarabadani
9e9414db50 Fix primary key sql patches of Postgres
Out of six PK SQL patches for Postgres, two of them were broken
because you can't put drop index inside alter table:
http://sqlfiddle.com/#!17/2acf44/1

One of them were caused by yours truly copying from the other one.

Also fixing file name in one the pk patches.

Noticed in I60a2b65d

Change-Id: If793ea61437d46adf3e05c38df4ad37bce81c5cf
2020-08-07 21:30:24 +02:00
Renamed from maintenance/postgres/archives/patch-user_groups-set-pk.sql (Browse further)