diff options
Diffstat (limited to 'modules/node/node.install')
-rw-r--r-- | modules/node/node.install | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/node/node.install b/modules/node/node.install index c5bf0c36b..efad2e158 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -15,7 +15,7 @@ function node_schema() { 'not null' => TRUE, ), 'vid' => array( - 'description' => 'The current {node_revisions}.vid version identifier.', + 'description' => 'The current {node_revision}.vid version identifier.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, @@ -210,7 +210,7 @@ function node_schema() { 'primary key' => array('nid'), ); - $schema['node_revisions'] = array( + $schema['node_revision'] = array( 'description' => 'Stores information about each saved version of a {node}.', 'fields' => array( 'nid' => array( @@ -326,7 +326,7 @@ function node_schema() { 'default' => '', ), 'has_body' => array( - 'description' => 'Boolean indicating whether this type uses the {node_revisions}.body field.', + 'description' => 'Boolean indicating whether this type uses the {node_revision}.body field.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, @@ -398,5 +398,14 @@ function node_update_7000() { } /** + * Rename {node_revisions} table to {node_revision}. + */ +function node_update_7001() { + $ret = array(); + db_rename_table($ret, 'node_revisions', 'node_revision'); + return $ret; +} + +/** * End of 6.x to 7.x updates */ |