Add post_parent index. fixes #7876

git-svn-id: https://develop.svn.wordpress.org/trunk@9290 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-22 22:03:41 +00:00
parent 584088045a
commit a11ad49d80
2 changed files with 3 additions and 2 deletions

View File

@ -139,7 +139,8 @@ 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,ID) KEY type_status_date (post_type,post_status,post_date,ID),
KEY post_parent (post_parent)
) $charset_collate; ) $charset_collate;
CREATE TABLE $wpdb->users ( CREATE TABLE $wpdb->users (
ID bigint(20) unsigned NOT NULL auto_increment, ID bigint(20) unsigned NOT NULL auto_increment,

View File

@ -15,6 +15,6 @@ $wp_version = '2.7-almost-beta';
* *
* @global int $wp_db_version * @global int $wp_db_version
*/ */
$wp_db_version = 8989; $wp_db_version = 9290;
?> ?>