Drop the blog_id column from the options table during upgrade. Props barry. fixes #17188
git-svn-id: https://develop.svn.wordpress.org/trunk@19798 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bbec83ba02
commit
22784619f4
@ -459,6 +459,9 @@ function upgrade_all() {
|
||||
if ( $wp_current_db_version < 19389 )
|
||||
upgrade_330();
|
||||
|
||||
if ( $wp_current_db_version < 19793 )
|
||||
upgrade_340();
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
|
||||
update_option( 'db_version', $wp_db_version );
|
||||
@ -1213,6 +1216,19 @@ function upgrade_330() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute changes made in WordPress 3.4.
|
||||
*
|
||||
* @since 3.4.0
|
||||
*/
|
||||
function upgrade_340() {
|
||||
global $wp_current_db_version, $wpdb;
|
||||
|
||||
$wpdb->hide_errors();
|
||||
$wpdb->query( "ALTER TABLE $wpdb->options DROP COLUMN blog_id" );
|
||||
$wpdb->show_errors();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute network level changes
|
||||
*
|
||||
|
@ -11,7 +11,7 @@ $wp_version = '3.4-alpha-19719';
|
||||
*
|
||||
* @global int $wp_db_version
|
||||
*/
|
||||
$wp_db_version = 19793;
|
||||
$wp_db_version = 19798;
|
||||
|
||||
/**
|
||||
* Holds the TinyMCE version
|
||||
|
Loading…
Reference in New Issue
Block a user