wiki.techinc.nl/maintenance/archives/patch-ar_rev_id-not-null.sql
Brad Jorsch f78faf4566 Populate ar_rev_id and make it non-nullable
Revisions deleted before MediaWiki 1.5 do not have a value in this
field. This is going to be a problem for migration to the MCR schema, so
provide a maintenance script to clean this up.

Then, for good measure, change the schema to make the field
non-nullable.

Bug: T182678
Change-Id: Ie2e11f12a30f379db32c3e074658012c6f93adb0
2018-04-02 13:08:55 -04:00

3 lines
124 B
SQL

-- T182678: Make ar_rev_id not nullable
ALTER TABLE /*_*/archive
CHANGE COLUMN ar_rev_id ar_rev_id int unsigned NOT NULL;