WordPress.org

Make WordPress Core

Ticket #11322: finicky-dbDelta-options.diff

File finicky-dbDelta-options.diff, 581 bytes (added by nacin, 8 years ago)
  • schema.php

     
    109109  option_value longtext NOT NULL,
    110110  autoload varchar(20) NOT NULL default 'yes',
    111111  PRIMARY KEY  (option_id),
    112   UNIQUE option_name (option_name),
    113   UNIQUE autoloaded_options (autoload, option_name)
     112  UNIQUE KEY option_name (option_name),
     113  UNIQUE KEY autoloaded_options (autoload,option_name)
    114114) $charset_collate;
    115115CREATE TABLE $wpdb->postmeta (
    116116  meta_id bigint(20) unsigned NOT NULL auto_increment,