wiki.techinc.nl/maintenance/archives/patch-drop-archive-user-fields.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

9 lines
248 B
SQL

--
-- patch-drop-archive-user-fields.sql
--
-- T188327. Drop old xx_user and xx_user_text fields, and defaults from xx_actor fields.
ALTER TABLE /*_*/archive
DROP COLUMN ar_user,
DROP COLUMN ar_user_text,
ALTER COLUMN ar_actor DROP DEFAULT;