Add ID to composite key. #2604

git-svn-id: http://svn.automattic.com/wordpress/trunk@3690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-04-04 01:15:25 +00:00
parent 230fd0cc1b
commit 4079e0c137
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ CREATE TABLE $wpdb->posts (
comment_count bigint(20) NOT NULL default '0',
PRIMARY KEY (ID),
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 (
ID bigint(20) unsigned NOT NULL auto_increment,