Make WordPress Core

Changeset 6126


Ignore:
Timestamp:
09/18/2007 04:37:21 PM (17 years ago)
Author:
ryan
Message:

Drop old tables. Props Nazgul. fixes #4995

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r6125 r6126  
    195195    if ( $wp_current_db_version < 5539 )
    196196        upgrade_230();
     197
     198    if ( $wp_current_db_version < 6124 )
     199        upgrade_230_old_tables();
    197200
    198201    maybe_disable_automattic_widgets();
     
    692695        $wpdb->query("ALTER TABLE $wpdb->options DROP $old");
    693696    $wpdb->show_errors();
     697}
     698
     699function upgrade_230_old_tables() {
     700    global $wpdb;
     701    $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'categories');
     702    $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'link2cat');
     703    $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'post2cat');
    694704}
    695705
  • trunk/wp-includes/version.php

    r6075 r6126  
    44
    55$wp_version = '2.3-beta3';
    6 $wp_db_version = 6075;
     6$wp_db_version = 6124;
    77
    88?>
Note: See TracChangeset for help on using the changeset viewer.