From f771be9e2c6b26a7903fcd3b6855fd3346463bec Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 8 Oct 2015 11:08:15 +0000 Subject: [PATCH] Term Meta: Prevent a "Multiple primary key defined" error during database upgrades. You must have two spaces between the words `PRIMARY KEY` and the definition of your primary key. Yes, seriously. See [34529]. Fixes #34210. git-svn-id: https://develop.svn.wordpress.org/trunk@34936 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php index 1d67e76016..985ddd2ba6 100644 --- a/src/wp-admin/includes/schema.php +++ b/src/wp-admin/includes/schema.php @@ -62,7 +62,7 @@ function wp_get_db_schema( $scope = 'all', $blog_id = null ) { term_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, - PRIMARY KEY (meta_id), + PRIMARY KEY (meta_id), KEY term_id (term_id), KEY meta_key (meta_key($max_index_length)) ) $charset_collate;