diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-05-23 16:44:31 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-05-23 16:44:31 -0700 |
commit | eed840666f7421640bf19bebe4a839777df279b8 (patch) | |
tree | 2df37572a568c02719017831acd5609f65aec613 | |
parent | 3b88a36ccd35e9caa6998b2b2f32a5bd169da1ea (diff) | |
download | brdo-eed840666f7421640bf19bebe4a839777df279b8.tar.gz brdo-eed840666f7421640bf19bebe4a839777df279b8.tar.bz2 |
Issue #1154808 by lyricnz, Starminder: Fixed Node Schema mismatch after upgrade D6 to D7.
-rw-r--r-- | modules/node/node.install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/node/node.install b/modules/node/node.install index 14290e3ad..852c1117b 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -837,5 +837,28 @@ function node_update_7010() { } /** + * Update the database from Drupal 6 to match the schema. + */ +function node_update_7011() { + // Drop node moderation field. + db_drop_field('node', 'moderate'); + db_drop_index('node', 'node_moderate'); + + // Change {node_revision}.status field to default to 1. + db_change_field('node_revision', 'status', 'status', array( + 'type' => 'int', + 'not null' => TRUE, + 'default' => 1, + )); + + // Change {node_type}.module field default. + db_change_field('node_type', 'module', 'module', array( + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + )); +} + +/** * @} End of "addtogroup updates-6.x-to-7.x" */ |