WordPress.org

Make WordPress Core

Ticket #38265: 38265.diff

File 38265.diff, 753 bytes (added by johnjamesjacoby, 4 years ago)
  • src/wp-admin/includes/schema.php

    diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php
    index 374e9d4..871cb0a 100644
    a b  
    8282 KEY taxonomy (taxonomy)
    8383) $charset_collate;
    8484CREATE TABLE $wpdb->term_relationships (
     85 term_relationship_id bigint(20) unsigned NOT NULL auto_increment,
    8586 object_id bigint(20) unsigned NOT NULL default 0,
    8687 term_taxonomy_id bigint(20) unsigned NOT NULL default 0,
    8788 term_order int(11) NOT NULL default 0,
    88  PRIMARY KEY  (object_id,term_taxonomy_id),
     89 PRIMARY KEY  (term_relationship_id),
     90 UNIQUE KEY object_id (object_id,term_taxonomy_id),
    8991 KEY term_taxonomy_id (term_taxonomy_id)
    9092) $charset_collate;
    9193CREATE TABLE $wpdb->commentmeta (