Populate ar_rev_id and make it non-nullable
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 4 Jan 2018 19:35:13 +0000 (14:35 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 2 Apr 2018 17:08:55 +0000 (13:08 -0400)
commitf78faf456695531f7512f98355ef8c499176570a
tree0685d4e2d34c13a0b02021bb63395a5d55f46a83
parent90492a91208c5bd15ac6ac2e52caff37a6b83bf7
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
17 files changed:
autoload.php
includes/installer/DatabaseUpdater.php
includes/installer/MssqlUpdater.php
includes/installer/MysqlUpdater.php
includes/installer/OracleUpdater.php
includes/installer/PostgresUpdater.php
includes/installer/SqliteUpdater.php
maintenance/archives/patch-ar_rev_id-not-null.sql [new file with mode: 0644]
maintenance/mssql/archives/patch-ar_rev_id-not-null.sql [new file with mode: 0644]
maintenance/mssql/tables.sql
maintenance/oracle/archives/patch-ar_rev_id-not-null.sql [new file with mode: 0644]
maintenance/oracle/tables.sql
maintenance/populateArchiveRevId.php [new file with mode: 0644]
maintenance/postgres/archives/patch-ar_rev_id-not-null.sql [new file with mode: 0644]
maintenance/postgres/tables.sql
maintenance/sqlite/archives/patch-ar_rev_id-not-null.sql [new file with mode: 0644]
maintenance/tables.sql