Make WordPress Core

Ticket #26858: 26858.2.diff

File 26858.2.diff, 1.6 KB (added by DrewAPicture, 9 years ago)
  • src/wp-admin/includes/schema.php

     
    119119  comment_parent bigint(20) unsigned NOT NULL default '0',
    120120  user_id bigint(20) unsigned NOT NULL default '0',
    121121  PRIMARY KEY  (comment_ID),
    122   KEY comment_post_ID (comment_post_ID),
     122  KEY comment_post_ID (comment_post_ID,comment_content($max_index_length)),
    123123  KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
    124124  KEY comment_date_gmt (comment_date_gmt),
    125125  KEY comment_parent (comment_parent),
  • src/wp-admin/includes/upgrade.php

     
    538538        if ( $wp_current_db_version < 33056 )
    539539                upgrade_431();
    540540
    541         if ( $wp_current_db_version < 34030 )
     541        if ( $wp_current_db_version < 34529 )
    542542                upgrade_440();
    543543
    544544        maybe_disable_link_manager();
     
    16121612        if ( $wp_current_db_version < 34030 ) {
    16131613                $wpdb->query( "ALTER TABLE {$wpdb->options} MODIFY option_name VARCHAR(191)" );
    16141614        }
     1615
     1616        if ( $wp_current_db_version < 34529 ) {
     1617                drop_index( $wpdb->comments, 'comment_post_ID' );
     1618        }
    16151619}
    16161620
    16171621/**
  • src/wp-includes/version.php

     
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 34528;
     14$wp_db_version = 34529;
    1515
    1616/**
    1717 * Holds the TinyMCE version