From f24ed6715fe6994c3d35aecac18a67d063552203 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 25 May 2007 22:57:52 +0000 Subject: [PATCH] Fix schema formatting to appease dbDelta. see #4189 git-svn-id: http://svn.automattic.com/wordpress/trunk@5551 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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,