mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
New fields for 1.1.
git-svn-id: https://develop.svn.wordpress.org/trunk@821 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a9352f2b90
commit
3894d0b352
@ -6,6 +6,7 @@ function upgrade_all() {
|
||||
upgrade_072();
|
||||
upgrade_100();
|
||||
upgrade_101();
|
||||
upgrade_110();
|
||||
}
|
||||
|
||||
// General
|
||||
@ -671,4 +672,14 @@ function upgrade_101() {
|
||||
add_clean_index($tablelinks , 'link_visible');
|
||||
}
|
||||
|
||||
function upgrade_110() {
|
||||
global $wpdb, $tableusers, $tablecomments, $tableposts;
|
||||
|
||||
maybe_add_column($tablecomments, 'user_id', "ALTER TABLE `$tablecomments` ADD `user_id` INT DEFAULT '0' NOT NULL ;");
|
||||
maybe_add_column($tableusers, 'user_activation_key', "ALTER TABLE `$tableusers` ADD `user_activation_key` VARCHAR( 60 ) NOT NULL ;");
|
||||
maybe_add_column($tableusers, 'user_status', "ALTER TABLE `$tableusers` ADD `user_status` INT DEFAULT '0' NOT NULL ;");
|
||||
$wpdb->query("ALTER TABLE `$tableposts` CHANGE `comment_status` `comment_status` ENUM( 'open', 'closed', 'registered_only' ) DEFAULT 'open' NOT NULL");
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user