WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/08/2015 11:08:15 AM (5 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r34912 r34936  
    6363  meta_key varchar(255) default NULL,
    6464  meta_value longtext,
    65   PRIMARY KEY (meta_id),
     65  PRIMARY KEY  (meta_id),
    6666  KEY term_id (term_id),
    6767  KEY meta_key (meta_key($max_index_length))
Note: See TracChangeset for help on using the changeset viewer.