Add an index on comment_parent to speed up wp_delete_comment() reparenting queries. fixes #12289
git-svn-id: http://svn.automattic.com/wordpress/trunk@13227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61a1dc747d
commit
ebdbcbc4b3
|
@ -81,7 +81,8 @@ CREATE TABLE $wpdb->comments (
|
|||
KEY comment_approved (comment_approved),
|
||||
KEY comment_post_ID (comment_post_ID),
|
||||
KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
|
||||
KEY comment_date_gmt (comment_date_gmt)
|
||||
KEY comment_date_gmt (comment_date_gmt),
|
||||
KEY comment_parent (comment_parent)
|
||||
) $charset_collate;
|
||||
CREATE TABLE $wpdb->links (
|
||||
link_id bigint(20) unsigned NOT NULL auto_increment,
|
||||
|
|
|
@ -1102,9 +1102,13 @@ function upgrade_290() {
|
|||
* @since 3.0.0
|
||||
*/
|
||||
function upgrade_300() {
|
||||
global $wp_current_db_version;
|
||||
|
||||
if ( $wp_current_db_version < 12751 ) {
|
||||
populate_roles_300();
|
||||
if ( is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false )
|
||||
add_site_option( 'siteurl', '' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,7 @@ $wp_version = '3.0-alpha';
|
|||
*
|
||||
* @global int $wp_db_version
|
||||
*/
|
||||
$wp_db_version = 12751;
|
||||
$wp_db_version = 13226;
|
||||
|
||||
/**
|
||||
* Holds the TinyMCE version
|
||||
|
|
Loading…
Reference in New Issue