Ticket #15004: 15004.8.diff
File 15004.8.diff, 1.5 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/upgrade.php
1978 1978 $wpdb->query("ALTER TABLE $wpdb->options DROP INDEX option_name"); 1979 1979 } 1980 1980 1981 // Upgrade verions prior to 3.7 1982 if ( $wp_current_db_version < 37000 && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) && is_main_network() ) { 1983 maybe_add_column( 1984 $wpdb->signups, 1985 'signup_id', 1986 "ALTER TABLE $wpdb->signups ADD signup_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST" 1987 ); 1988 $wpdb->query( "ALTER TABLE $wpdb->signups DROP INDEX domain" ); 1989 } 1981 1990 } 1982 1991 1983 1992 /** -
wp-admin/includes/schema.php
272 272 KEY site_id (site_id) 273 273 ) $charset_collate; 274 274 CREATE TABLE $wpdb->signups ( 275 signup_id bigint(20) NOT NULL auto_increment, 275 276 domain varchar(200) NOT NULL default '', 276 277 path varchar(100) NOT NULL default '', 277 278 title longtext NOT NULL, … … 282 283 active tinyint(1) NOT NULL default '0', 283 284 activation_key varchar(50) NOT NULL default '', 284 285 meta longtext, 286 PRIMARY KEY (signup_id), 285 287 KEY activation_key (activation_key), 286 KEY domain (domain) 288 KEY user_email (user_email) 289 KEY user_login_email (user_login,user_email), 290 KEY domain_path (domain,path), 287 291 ) $charset_collate;"; 288 292 289 293 switch ( $scope ) {