Schema changes

From Wikitech
Revision as of 23:22, 9 October 2012 by Reedy (Talk | contribs)

Jump to: navigation, search

Contents

Guidelines

  • All schema changes must be reviewed by DB Ops and/or Platform Engineering
  • Add the change to the below table. All fields must be completed.
  • Depending on the number of wikis and size of tables being modified, migrations can take anywhere from an hour to multiple days to fully deploy. Reviewed schema migrations should generally be added to this page and explicitly scheduled a week before the correlating software deployments.

Pending

To be scheduled

Wiki(s) Table Change More info
All wikis image, oldimage Truncate SHA-1 indexes

No patch available, was changed within a release

All wikis recentchanges Dropping rc_moved_to_title
Table recentchanges contains rc_moved_to_title field. Dropping...
All wikis site_status Dropping ss_admins
Table site_stats contains ss_admins field. Dropping...
All wikis page, revision, archive Content handler columns

(merged in master; MediaWiki flips out without these columns)

Adding rev_content_format field to table revision...
Adding rev_content_model field to table revision...
Adding ar_content_format field to table archive...
Adding ar_content_model field to table archive...
Adding page_content_model field to table page...
All wikis category Dropping cat_hidden
Table category contains cat_hidden field. Dropping...
All wikis filearchive Add fa_sha1 field to filearchive gerrit Ie54a513f
All wikis filejournal Drop fj_new_sha1 field
See ticket user_newtalk Fix schema inconsistency https://rt.wikimedia.org/Ticket/Display.html?id=3514
All wikis job Job queue improvements https://gerrit.wikimedia.org/r/#/c/13194/
Most wikis change_tag and tag_summary Index updates https://bugzilla.wikimedia.org/show_bug.cgi?id=40867

In progress

Wiki(s) Table Change More info

Completed

Wiki(s) Table Change More info
meta cn_notices default value change for new CentralNotice feature[1] We will want to deploy the new feature on the same day as the schema change (although it is not dependent)
All wikis abuse_filter_log add afl_rev_id and afl_log_id columns and indexes [2]
test, enwiki pagetriage_page schema changes for PageTriage extension [3]
All wikis Various IPv6 schema fixes (SecurePoll, GlobalBlocking, recentchanges)
All wikis ipblocks Addition of ipb_parent_block_id and index [4]
All wikis revision Add sha-1 column of revision text [5]
bewikimedia, incubatorwiki, mediawikiwiki, metawiki, outreachwiki, testwiki, wikimania2012wiki, wikimania2013wiki translate_groupstats

1) Index for performance[6]
2) New field for new stats[7]

Requested by Nikerabbit

Archive (pre-2012)

All wikis:

  • patch-filearchive-user-index.sql
  • patch-ar_parent_id.sql
  • patch-log_user_text.sql
  • patch-user_properties.sql
  • patch-log_search.sql
  • patch-categorylinksindex.sql

AbuseFilter wikis:

  • extensions/AbuseFilter/db_patches/patch-global_filters.sql
  • extensions/AbuseFilter/db_patches/patch-hide_patrol.sql

Wikis without AbuseFilter are having tables added: extensions/AbuseFilter/abusefilter.tables.sql

FlaggedRevs wikis:

  • Apparently already done: extensions/FlaggedRevs/archives/patch-fpc_level.sql
  • extensions/FlaggedRevs/archives/patch-flaggedpage_pending.sql

nlwiki, plwiki, svwiki, frwiki:

  • patch-rc_user_text-index.sql
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox