From 4153107e1fd7e3e0cda23561a9fe02492f7302f5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 25 May 2007 22:57:52 +0000 Subject: [PATCH] Fix schema formatting to appease dbDelta. see #4189 git-svn-id: https://develop.svn.wordpress.org/trunk@5551 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/schema.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 40635a26be..1030b2e379 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -25,14 +25,14 @@ CREATE TABLE $wpdb->term_taxonomy ( description longtext NOT NULL, parent bigint(20) NOT NULL default 0, count bigint(20) NOT NULL default 0, - PRIMARY KEY (term_taxonomy_id), - UNIQUE KEY (term_id,taxonomy) + PRIMARY KEY (term_taxonomy_id), + UNIQUE KEY term_id_taxonomy (term_id,taxonomy) ) $charset_collate; CREATE TABLE $wpdb->term_relationships ( object_id bigint(20) NOT NULL default 0, term_taxonomy_id bigint(20) NOT NULL default 0, - PRIMARY KEY (object_id, term_taxonomy_id), - KEY (term_taxonomy_id) + PRIMARY KEY (object_id,term_taxonomy_id), + KEY term_taxonomy_id (term_taxonomy_id) ) $charset_collate; CREATE TABLE $wpdb->comments ( comment_ID bigint(20) unsigned NOT NULL auto_increment,