Ticket #334: unique_key_db.patch

File unique_key_db.patch, 0.5 kB (added by momo360modena, 1 year ago)
  • schema.php

    old new  
    192192  site_id bigint(20) NOT NULL default '0', 
    193193  meta_key varchar(255) default NULL, 
    194194  meta_value longtext, 
    195   PRIMARY KEY  (meta_id), 
     195  PRIMARY KEY (meta_id), 
    196196  KEY meta_key (meta_key), 
    197197  KEY site_id (site_id) 
     198  UNIQUE `site_id_meta_key` (site_id, meta_key)  
    198199) $charset_collate; 
    199200CREATE TABLE IF NOT EXISTS $wpdb->sitecategories ( 
    200201  cat_ID bigint(20) NOT NULL auto_increment,