Reducing queries and forward thinking database fields.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-04-26 23:54:52 +00:00
parent f8e2f4f2f4
commit 51335f97bb
3 changed files with 11 additions and 23 deletions

View File

@@ -803,6 +803,11 @@ function upgrade_110() {
foreach ($unusedoptions as $option) :
delete_option($option);
endforeach;
// Forward-thinking
$wpdb->query("ALTER TABLE `$tableposts` CHANGE `post_status` `post_status` ENUM( 'publish', 'draft', 'private', 'static' ) DEFAULT 'publish' NOT NULL");
}
maybe_add_column($tableposts, 'post_parent', "ALTER TABLE `$tableposts` ADD `post_parent` INT NOT NULL ;");
?>