Fix db version logic error. Props miqrogroove. fixes #10994
git-svn-id: http://svn.automattic.com/wordpress/trunk@12232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c831a9e3ef
commit
48b9a9f2bb
|
@ -1709,7 +1709,7 @@ function pre_schema_upgrade() {
|
||||||
global $wp_current_db_version, $wp_db_version, $wpdb;
|
global $wp_current_db_version, $wp_db_version, $wpdb;
|
||||||
|
|
||||||
// Upgrade 2.9 development versions
|
// Upgrade 2.9 development versions
|
||||||
if ( ( $wp_current_db_version > 11557 ) && ( $wp_current_db_version < 12217 ) ) {
|
if ( ( $wp_current_db_version >= 11557 ) && ( $wp_current_db_version < 12217 ) ) {
|
||||||
// Drop the option_id index. dbDelta() doesn't do the drop.
|
// Drop the option_id index. dbDelta() doesn't do the drop.
|
||||||
$wpdb->query("ALTER TABLE $wpdb->options DROP INDEX option_id");
|
$wpdb->query("ALTER TABLE $wpdb->options DROP INDEX option_id");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue