Make WordPress Core

Ticket #3900: unique_key.diff

File unique_key.diff, 1.3 KB (added by ryan, 18 years ago)
  • wp-includes/version.php

     
    33// This holds the version number in a separate file so we can bump it without cluttering the SVN
    44
    55$wp_version = '2.2-bleeding';
    6 $wp_db_version = 4860;
     6$wp_db_version = 4967;
    77
    88?>
  • wp-admin/upgrade-schema.php

     
    4848  link_id bigint(20) NOT NULL default '0',
    4949  category_id bigint(20) NOT NULL default '0',
    5050  PRIMARY KEY  (rel_id),
    51   KEY link_id (link_id,category_id)
     51  UNIQUE link_id (link_id,category_id),
     52  UNIQUE category_id (category_id,link_id)
    5253) $charset_collate;
    5354CREATE TABLE $wpdb->links (
    5455  link_id bigint(20) NOT NULL auto_increment,
     
    8990  post_id bigint(20) NOT NULL default '0',
    9091  category_id bigint(20) NOT NULL default '0',
    9192  PRIMARY KEY  (rel_id),
    92   KEY post_id (post_id,category_id)
     93  UNIQUE post_id (post_id,category_id),
     94  UNIQUE category_id (category_id,post_id)
    9395) $charset_collate;
    9496CREATE TABLE $wpdb->postmeta (
    9597  meta_id bigint(20) NOT NULL auto_increment,