Make WordPress Core


Ignore:
Timestamp:
08/26/2009 10:46:33 PM (15 years ago)
Author:
ryan
Message:

Make option_name the primary key for the options table. Props Denis-de-Bernardy. fixes #2699

File:
1 edited

Legend:

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

    r11450 r11883  
    100100  option_value longtext NOT NULL,
    101101  autoload varchar(20) NOT NULL default 'yes',
    102   PRIMARY KEY  (option_id,blog_id,option_name),
    103   KEY option_name (option_name)
     102  PRIMARY KEY  (option_name),
     103  KEY option_id (option_id)
    104104) $charset_collate;
    105105CREATE TABLE $wpdb->postmeta (
Note: See TracChangeset for help on using the changeset viewer.