From b39a5f94e53f18000c0373a26548fefead9408ae Mon Sep 17 00:00:00 2001 From: Paladox Date: Wed, 12 Oct 2016 16:22:20 +0100 Subject: [PATCH] Add patch to migrate rc_ip field to varbinary(40) This makes it match tables.sql, as it was modified previously but no related database patch was made. Bug: T117854 Change-Id: I239e7ee4d97fcc3cb96c98dc53d9371883aaf4fb --- includes/installer/MysqlUpdater.php | 1 + maintenance/archives/patch-rc_ip_modify.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 maintenance/archives/patch-rc_ip_modify.sql diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index 497f27350e..a637ce01e3 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -290,6 +290,7 @@ class MysqlUpdater extends DatabaseUpdater { [ 'doNonUniquePlTlIl' ], [ 'addField', 'change_tag', 'ct_id', 'patch-change_tag-ct_id.sql' ], [ 'addField', 'tag_summary', 'ts_id', 'patch-tag_summary-ts_id.sql' ], + [ 'modifyField', 'recentchanges', 'rc_ip', 'patch-rc_ip_modify.sql' ], ]; } diff --git a/maintenance/archives/patch-rc_ip_modify.sql b/maintenance/archives/patch-rc_ip_modify.sql new file mode 100644 index 0000000000..e889b5c5a6 --- /dev/null +++ b/maintenance/archives/patch-rc_ip_modify.sql @@ -0,0 +1 @@ +ALTER TABLE /*_*/recentchanges MODIFY COLUMN rc_ip varbinary(40) NOT NULL default ''; -- 2.20.1