Add ID to composite key. #2604
git-svn-id: https://develop.svn.wordpress.org/trunk@3690 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f1a38b0b9d
commit
cc11a073cc
|
@ -118,7 +118,7 @@ CREATE TABLE $wpdb->posts (
|
||||||
comment_count bigint(20) NOT NULL default '0',
|
comment_count bigint(20) NOT NULL default '0',
|
||||||
PRIMARY KEY (ID),
|
PRIMARY KEY (ID),
|
||||||
KEY post_name (post_name),
|
KEY post_name (post_name),
|
||||||
KEY type_status_date (post_type, post_status, post_date)
|
KEY type_status_date (post_type, post_status, post_date, ID)
|
||||||
);
|
);
|
||||||
CREATE TABLE $wpdb->users (
|
CREATE TABLE $wpdb->users (
|
||||||
ID bigint(20) unsigned NOT NULL auto_increment,
|
ID bigint(20) unsigned NOT NULL auto_increment,
|
||||||
|
|
Loading…
Reference in New Issue