Make WordPress Core


Ignore:
Timestamp:
01/31/2012 05:45:22 PM (14 years ago)
Author:
ryan
Message:

Drop the blog_id column from the options table during upgrade. Props barry. fixes #17188

File:
1 edited

Legend:

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

    r19786 r19798  
    460460        upgrade_330();
    461461
     462    if ( $wp_current_db_version < 19793 )
     463        upgrade_340();
     464
    462465    maybe_disable_automattic_widgets();
    463466
     
    12141217}
    12151218
     1219/**
     1220 * Execute changes made in WordPress 3.4.
     1221 *
     1222 * @since 3.4.0
     1223 */
     1224function upgrade_340() {
     1225    global $wp_current_db_version, $wpdb;
     1226
     1227    $wpdb->hide_errors();
     1228    $wpdb->query( "ALTER TABLE $wpdb->options DROP COLUMN blog_id" );
     1229    $wpdb->show_errors();
     1230}   
     1231   
    12161232/**
    12171233 * Execute network level changes
Note: See TracChangeset for help on using the changeset viewer.