wiki.techinc.nl/maintenance/mssql/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

1 line
62 B
SQL

ALTER TABLE /*_*/archive ALTER COLUMN ar_rev_id INT NOT NULL;