Populate externallinks.el_index_60 and drop default
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 18 Nov 2016 20:42:11 +0000 (15:42 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 15 May 2018 16:08:35 +0000 (12:08 -0400)
commitaef72c5cf62806a5146b9c41e36a0b070de1af46
tree33f328277c61cc9132fa433497c25c4ef5c83cd4
parentf93af41d4528bae0a4b0a1c791682e39686c2bdf
Populate externallinks.el_index_60 and drop default

Adds a maintenance script to populate the field, has that be
automatically run during update.php, and drops the no-longer-needed
default value on the column (where possible: mssql has some sort of
constraint thing going on that I have no idea how it works).

Bug: T59176
Change-Id: I971edf013a1a39466aca3b6e34c915cb24fd3aa7
16 files changed:
autoload.php
includes/deferred/LinksUpdate.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-externallinks-el_index_60-drop-default.sql [new file with mode: 0644]
maintenance/fixExtLinksProtocolRelative.php
maintenance/mssql/archives/patch-externallinks-el_index_60-drop-default.sql [new file with mode: 0644]
maintenance/mssql/tables.sql
maintenance/populateExternallinksIndex60.php [new file with mode: 0644]
maintenance/postgres/tables.sql
maintenance/sqlite/archives/patch-externallinks-el_index_60-drop-default.sql [new file with mode: 0644]
maintenance/tables.sql