diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-08 03:27:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-08 03:27:56 +0000 |
commit | 3a0d4322ae61b3ef7e8514bfc2a6355c8e170019 (patch) | |
tree | a1c40112af38141f1c98f65c7d07cc17c01187c8 /modules/node/node.install | |
parent | 34ec8f9834579098308308c85be484fe5b771995 (diff) | |
download | brdo-3a0d4322ae61b3ef7e8514bfc2a6355c8e170019.tar.gz brdo-3a0d4322ae61b3ef7e8514bfc2a6355c8e170019.tar.bz2 |
#206138 by pwolanin: Rename mis-named 'module' attribute in node types.
Diffstat (limited to 'modules/node/node.install')
-rw-r--r-- | modules/node/node.install | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/modules/node/node.install b/modules/node/node.install index ac2fed9d4..1d6980ccb 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -293,8 +293,8 @@ function node_schema() { 'not null' => TRUE, 'default' => '', ), - 'module' => array( - 'description' => t('The module that implements this type.'), + 'base' => array( + 'description' => t('The base string used to construct callbacks corresponding to this node type.'), 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, @@ -380,3 +380,23 @@ function node_schema() { return $schema; } + +/** + * Drupal 6.x to 7.x updates + */ + +/** + * Fix node type 'module' attribute to avoid name-space conflicts. + */ +function node_update_7000() { + $ret = array(); + + $ret[] = update_sql("UPDATE {node_type} SET module = 'node_content' WHERE module = 'node'"); + db_change_field($ret, 'node_type', 'module', 'base', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE)); + + return $ret; +} + +/** + * End of 6.x to 7.x updates + */ |