wiki.techinc.nl/maintenance/archives/patch-drop-archive-ar_usertext_timestamp.sql
Reedy 8e09dbe83a Split dropping of image.img_user_timestamp
Splits the dropping of image.img_user_timestamp (which was added
in MW 1.29) from patch-drop-image-img_user_timestamp.sql because
if you're upgrading from a much older MW version, the index may
not exist, and will cause the whole
patch-drop-image-img_user_timestamp.sql patch to fail from the
index not existing.

It probably should have been added by the ifTableNotExists/actor
entry with patch-image-user-index-2.sql (as actor wasn't added
until 1.31)...

Also fix up some comments relating to the patch filenames I
missed whilst I split them in T257407.

Bug: T267543
Change-Id: I3cdecf6df459d44b4d51a9ad9e1ff00997ff0c02
2020-12-07 03:35:50 +00:00

7 lines
384 B
SQL

-- T233221: The index on `archive` variously known as `ar_usertext_timestamp`
-- and `usertext_timestamp` has a long and sordid history. We're dropping the
-- `ar_user_text` column entirely now (see patch-drop-archive-user-fields.sql), but
-- this index needs special care thanks to said history.
-- Do not use the /*i*/ thing here!
DROP INDEX ar_usertext_timestamp ON /*_*/archive;