Last modified: 2014-03-14 01:05:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51593, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49593 - Rename two indexes in the Echo extension
Rename two indexes in the Echo extension
Status: NEW
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Sean Pringle
: schema-change
Depends on:
Blocks: 49188
  Show dependency treegraph
 
Reported: 2013-06-14 20:20 UTC by Erik Bernhardson
Modified: 2014-03-14 01:05 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Erik Bernhardson 2013-06-14 20:20:13 UTC
Short description:

Rename two indexes in the Echo extension.  These were renamed for the benefit of SQLite on the foundations Continuous Integration environment which requires index names to be unique not just to a table, but to the entire database.

My review of mariadb's 'ALTER TABLE' statement suggests there is no rename index option(incl in mysql 5.7), so the indexes would need to be dropped and recreated.  We are not sure if its actually worthwhile to rename these indexes in prod, up to you.

Which wikis are affected:

testwiki: maindb & extension1db - maindb is not used but it's good to make it either up to date or just remove all echo tables
test2wiki: maindb
mediawikiwiki: maindb
enwiki: extension1db

Which tables:

echo_event and echo_notification

What is the change to those tables:

CREATE INDEX /*i*/echo_event_type ON /*_*/echo_event (event_type);
DROP INDEX /*i*/event_type ON /*_*/echo_event;

CREATE INDEX /*i*/echo_user_timestamp ON /*_*/echo_notification (notification_user, notification_timestamp);
DROP INDEX /*i*/user_timestamp ON /*_*/echo_notification;


Links to gerrit changes and/or other related bug reports.

https://gerrit.wikimedia.org/r/#/c/64594/
https://gerrit.wikimedia.org/r/#/c/68728/
Comment 1 Andre Klapper 2014-03-13 13:38:48 UTC
Sean: Any news here (as you set yourself as assignee and as this is high priority)? Or should priority be lower instead?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links