From f8241d6c37fa28bd6da1ca40555d705347436e81 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 19 Jan 2007 20:33:11 +0000 Subject: [PATCH] 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 --- wp-admin/upgrade-functions.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index 6d15788400..99491e12d4 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -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'); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9319032fff..dd5e48cfaa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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; ?>