Drop linkcategories table for those upgrading from previous alphas and betas.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f15b11bc7f
commit
15354bef0b
|
@ -174,7 +174,7 @@ function upgrade_all() {
|
|||
if ( $wp_current_db_version < 3308 )
|
||||
upgrade_160();
|
||||
|
||||
if ( $wp_current_db_version < 3845 )
|
||||
if ( $wp_current_db_version < 4772 )
|
||||
upgrade_210();
|
||||
|
||||
if ( $wp_current_db_version < 4351 )
|
||||
|
@ -552,7 +552,9 @@ function upgrade_210() {
|
|||
$wpdb->query("UPDATE $wpdb->categories SET link_count = '$count' WHERE cat_ID = '$cat_id'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( $wp_current_db_version < 4772 ) {
|
||||
// Obsolete linkcategories table
|
||||
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'linkcategories');
|
||||
}
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
// This holds the version number in a separate file so we can bump it without cluttering the SVN
|
||||
|
||||
$wp_version = '2.1-RC1';
|
||||
$wp_db_version = 4351;
|
||||
$wp_db_version = 4772;
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue