From 3c803da07033fd0a4ca793dc72696c86ef76580d Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 6 Mar 2009 08:26:45 +0000 Subject: [PATCH] Add index on taxonomy. see #7415 git-svn-id: http://svn.automattic.com/wordpress/trunk@10733 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/schema.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 4bb49a2771..a75bf3de72 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -44,7 +44,8 @@ CREATE TABLE $wpdb->term_taxonomy ( parent bigint(20) NOT NULL default 0, count bigint(20) NOT NULL default 0, PRIMARY KEY (term_taxonomy_id), - UNIQUE KEY term_id_taxonomy (term_id,taxonomy) + UNIQUE KEY term_id_taxonomy (term_id,taxonomy), + KEY taxonomy (taxonomy) ) $charset_collate; CREATE TABLE $wpdb->term_relationships ( object_id bigint(20) NOT NULL default 0, diff --git a/wp-includes/version.php b/wp-includes/version.php index 9df2da358a..09471bd4f8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -15,6 +15,6 @@ $wp_version = '2.8-bleeding-edge'; * * @global int $wp_db_version */ -$wp_db_version = 10553; +$wp_db_version = 10733; ?>