Make WordPress Core


Ignore:
Timestamp:
08/30/2013 04:29:06 AM (10 years ago)
Author:
nacin
Message:

Add signup_id primary key to $wpdb->signups, and add better indexes.

props josephscott, pento, barry.
see #15004.

File:
1 edited

Legend:

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

    r24625 r25179  
    19791979    }
    19801980
     1981    // Upgrade verions prior to 3.7
     1982    if ( $wp_current_db_version < 25179 && is_multisite() && is_main_network() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
     1983        $wpdb->query( "ALTER TABLE $wpdb->signups ADD signup_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST" );
     1984        $wpdb->query( "ALTER TABLE $wpdb->signups DROP INDEX domain" );
     1985    }
    19811986}
    19821987
Note: See TracChangeset for help on using the changeset viewer.