Schema: Add an index to `wp_users.user_email`.
Improves lookup of an email address on large user tables. See #9568. Fixes #33376. Built from https://develop.svn.wordpress.org/trunk@36654 git-svn-id: http://core.svn.wordpress.org/trunk@36621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f69045c9a6
commit
cf5df5a7ce
|
@ -204,7 +204,8 @@ CREATE TABLE $wpdb->posts (
|
|||
display_name varchar(250) NOT NULL default '',
|
||||
PRIMARY KEY (ID),
|
||||
KEY user_login_key (user_login),
|
||||
KEY user_nicename (user_nicename)
|
||||
KEY user_nicename (user_nicename),
|
||||
KEY user_email (user_email)
|
||||
) $charset_collate;\n";
|
||||
|
||||
// Multisite users table
|
||||
|
@ -223,7 +224,8 @@ CREATE TABLE $wpdb->posts (
|
|||
deleted tinyint(2) NOT NULL default '0',
|
||||
PRIMARY KEY (ID),
|
||||
KEY user_login_key (user_login),
|
||||
KEY user_nicename (user_nicename)
|
||||
KEY user_nicename (user_nicename),
|
||||
KEY user_email (user_email)
|
||||
) $charset_collate;\n";
|
||||
|
||||
// Usermeta.
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36653';
|
||||
$wp_version = '4.5-alpha-36654';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
*
|
||||
* @global int $wp_db_version
|
||||
*/
|
||||
$wp_db_version = 36180;
|
||||
$wp_db_version = 36654;
|
||||
|
||||
/**
|
||||
* Holds the TinyMCE version
|
||||
|
|
Loading…
Reference in New Issue