diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-05-23 21:00:54 -0400 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-05-23 21:00:54 -0400 |
commit | 259d0b8feca71d49c2f79dcce53b3147f7429b75 (patch) | |
tree | 2a1c29bbd6ecefb410f9b34a3ffbba65d1f09f8f /modules/node | |
parent | 1f17b2c1e2cc602faa99f40f8c0c305df7e17cde (diff) | |
parent | 6c57cfa11d58e8c3b6dd5ccc663ce15e2b8842cd (diff) | |
download | brdo-259d0b8feca71d49c2f79dcce53b3147f7429b75.tar.gz brdo-259d0b8feca71d49c2f79dcce53b3147f7429b75.tar.bz2 |
Merge branch '7.x' of git.drupal.org:project/drupal into 7.x
Diffstat (limited to 'modules/node')
-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" */ |