Drop linkcategories table for those upgrading from previous alphas and betas.

git-svn-id: https://develop.svn.wordpress.org/trunk@4772 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-01-19 20:33:11 +00:00
parent f9f244b2d1
commit f8241d6c37
2 changed files with 4 additions and 2 deletions

View File

@ -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');
}

View File

@ -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;
?>