Tim Starling has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/346090 )

Change subject: Fix incorrect index name in new 1.28.0 installations
......................................................................

Fix incorrect index name in new 1.28.0 installations

This index name should be the same in new installations as in all other
MySQL installations. This is necessary so that
Special:DeletedContributions does not give an SQL error. Release notes
will go in the 1.28 branch.

Change-Id: I535a5513ab56203139c4cf64874ea7e7498990e3
---
M includes/installer/MysqlUpdater.php
A maintenance/archives/patch-rename-ar_usertext_timestamp.sql
2 files changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/90/346090/1

diff --git a/includes/installer/MysqlUpdater.php 
b/includes/installer/MysqlUpdater.php
index ff13196..70e790c 100644
--- a/includes/installer/MysqlUpdater.php
+++ b/includes/installer/MysqlUpdater.php
@@ -294,6 +294,7 @@
                        [ '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' ],
+                       [ 'addIndex', 'archive', 'usertext_timestamp', 
'patch-rename-ar_usertext_timestamp.sql' ],
 
                        // 1.29
                        [ 'addField', 'externallinks', 'el_index_60', 
'patch-externallinks-el_index_60.sql' ],
diff --git a/maintenance/archives/patch-rename-ar_usertext_timestamp.sql 
b/maintenance/archives/patch-rename-ar_usertext_timestamp.sql
new file mode 100644
index 0000000..cde96c0
--- /dev/null
+++ b/maintenance/archives/patch-rename-ar_usertext_timestamp.sql
@@ -0,0 +1,6 @@
+-- Rename the archive.ar_usertext_timestamp index to usertext_timestamp.
+-- This is for MySQL only and is only necessary on wikis freshly installed on
+-- 1.28.0 when bug T154872 was present. The patch will probably be removed in
+-- 1.29 since we plan on renaming the index properly to ar_usertext_timestamp.
+ALTER TABLE /*$wgDBprefix*/archive
+       RENAME INDEX ar_usertext_timestamp TO usertext_timestamp;

-- 
To view, visit https://gerrit.wikimedia.org/r/346090
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I535a5513ab56203139c4cf64874ea7e7498990e3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Tim Starling <tstarl...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to