Make WordPress Core

Ticket #15004: 15004.6.diff

File 15004.6.diff, 848 bytes (added by josephscott, 11 years ago)

Add primary key as well

  • wp-admin/includes/schema.php

     
    272272  KEY site_id (site_id)
    273273) $charset_collate;
    274274CREATE TABLE $wpdb->signups (
     275  signup_id bigint(20) NOT NULL auto_increment,
    275276  domain varchar(200) NOT NULL default '',
    276277  path varchar(100) NOT NULL default '',
    277278  title longtext NOT NULL,
     
    282283  active tinyint(1) NOT NULL default '0',
    283284  activation_key varchar(50) NOT NULL default '',
    284285  meta longtext,
     286  PRIMARY KEY  (signup_id),
    285287  KEY activation_key (activation_key),
    286   KEY domain (domain)
     288  KEY domain_path (domain,path),
     289  KEY user_login_email (user_login,user_email),
     290  KEY user_email (user_email)
    287291) $charset_collate;";
    288292
    289293        switch ( $scope ) {