Moved post_parent add into function
git-svn-id: https://develop.svn.wordpress.org/trunk@1188 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5ba9dae5a4
commit
a0c8bb6a2a
|
@ -806,8 +806,8 @@ function upgrade_110() {
|
||||||
|
|
||||||
// Forward-thinking
|
// Forward-thinking
|
||||||
$wpdb->query("ALTER TABLE `$tableposts` CHANGE `post_status` `post_status` ENUM( 'publish', 'draft', 'private', 'static' ) DEFAULT 'publish' NOT NULL");
|
$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 ;");
|
maybe_add_column($tableposts, 'post_parent', "ALTER TABLE `$tableposts` ADD `post_parent` INT NOT NULL ;");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue