Some optimization of the post query. #2604
git-svn-id: http://svn.automattic.com/wordpress/trunk@3678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -166,7 +166,7 @@ function upgrade_all() {
|
||||
if ( $wp_current_db_version < 3308 )
|
||||
upgrade_160();
|
||||
|
||||
if ( $wp_current_db_version < 3582 )
|
||||
if ( $wp_current_db_version < 3672 )
|
||||
upgrade_210();
|
||||
|
||||
$wp_rewrite->flush_rules();
|
||||
|
||||
@@ -113,11 +113,12 @@ CREATE TABLE $wpdb->posts (
|
||||
post_parent bigint(20) NOT NULL default '0',
|
||||
guid varchar(255) NOT NULL default '',
|
||||
menu_order int(11) NOT NULL default '0',
|
||||
post_type varchar(100) NOT NULL default 'post',
|
||||
post_type varchar(20) NOT NULL default 'post',
|
||||
post_mime_type varchar(100) NOT NULL default '',
|
||||
comment_count bigint(20) NOT NULL default '0',
|
||||
PRIMARY KEY (ID),
|
||||
KEY post_name (post_name)
|
||||
KEY post_name (post_name),
|
||||
KEY type_status_date (post_type, post_status, post_date)
|
||||
);
|
||||
CREATE TABLE $wpdb->users (
|
||||
ID bigint(20) unsigned NOT NULL auto_increment,
|
||||
|
||||
Reference in New Issue
Block a user