Drop old tables. Props Nazgul. fixes #4995

git-svn-id: https://develop.svn.wordpress.org/trunk@6126 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-09-18 16:37:21 +00:00
parent 5917c5458c
commit 7977cdd349
2 changed files with 11 additions and 1 deletions

View File

@ -195,6 +195,9 @@ function upgrade_all() {
if ( $wp_current_db_version < 5539 )
upgrade_230();
if ( $wp_current_db_version < 6124 )
upgrade_230_old_tables();
maybe_disable_automattic_widgets();
$wp_rewrite->flush_rules();
@ -693,6 +696,13 @@ function upgrade_230_options_table() {
$wpdb->show_errors();
}
function upgrade_230_old_tables() {
global $wpdb;
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'categories');
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'link2cat');
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'post2cat');
}
function upgrade_old_slugs() {
// upgrade people who were using the Redirect Old Slugs plugin
global $wpdb;

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.3-beta3';
$wp_db_version = 6075;
$wp_db_version = 6124;
?>