WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/19/2019 10:06:41 PM (2 years ago)
Author:
whyisjake
Message:

Multisite: Remove the redundant blog_versions table.

As part of the Multisite installation process, a blog_versions table is created. This table is never read from (except immediately prior to updating it), it's only ever inserted into or updated. It is not used to determine which blogs need to be upgraded.
This table was introduced in 3.0 when the WPMU schema was merged #11644 and it appears the table has never been used in core and is therefore redundant and may as well be removed.

Props johnbillion, nacin, ryan, johnjamesjacoby, whyisjake.

Fixes #19755. See #41685.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r45932 r46194  
    262262    KEY lang_id (lang_id)
    263263) $charset_collate;
    264 CREATE TABLE $wpdb->blog_versions (
    265     blog_id bigint(20) NOT NULL default '0',
    266     db_version varchar(20) NOT NULL default '',
    267     last_updated datetime NOT NULL default '0000-00-00 00:00:00',
    268     PRIMARY KEY  (blog_id),
    269     KEY db_version (db_version)
    270 ) $charset_collate;
    271264CREATE TABLE $wpdb->blogmeta (
    272265    meta_id bigint(20) unsigned NOT NULL auto_increment,
Note: See TracChangeset for help on using the changeset viewer.