Add signup_id primary key to $wpdb->signups, and add better indexes.
props josephscott, pento, barry. see #15004. Built from https://develop.svn.wordpress.org/trunk@25179 git-svn-id: http://core.svn.wordpress.org/trunk@25151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -272,6 +272,7 @@ CREATE TABLE $wpdb->sitemeta (
|
||||
KEY site_id (site_id)
|
||||
) $charset_collate;
|
||||
CREATE TABLE $wpdb->signups (
|
||||
signup_id bigint(20) NOT NULL auto_increment,
|
||||
domain varchar(200) NOT NULL default '',
|
||||
path varchar(100) NOT NULL default '',
|
||||
title longtext NOT NULL,
|
||||
@@ -282,8 +283,11 @@ CREATE TABLE $wpdb->signups (
|
||||
active tinyint(1) NOT NULL default '0',
|
||||
activation_key varchar(50) NOT NULL default '',
|
||||
meta longtext,
|
||||
PRIMARY KEY (signup_id),
|
||||
KEY activation_key (activation_key),
|
||||
KEY domain (domain)
|
||||
KEY user_email (user_email)
|
||||
KEY user_login_email (user_login,user_email),
|
||||
KEY domain_path (domain,path),
|
||||
) $charset_collate;";
|
||||
|
||||
switch ( $scope ) {
|
||||
|
||||
Reference in New Issue
Block a user