function content_update_6001 in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 6.3 content.install \content_update_6001()
- 6.2 content.install \content_update_6001()
Rename node_field and node_field_instance tables.
This is a carryover from when the data tables were renamed, postponed so we wouldn't create any more havoc than necessary until a major version change.
Using 'content_node_field' instead of 'content_field' to avoid conflicts with field tables that will be prefixed with 'content_field'.
File
- ./
content.install, line 248
Code
function content_update_6001() {
$ret = array();
if (db_table_exists('content_node_field')) {
return $ret;
}
db_rename_table($ret, 'node_field', 'content_node_field');
db_rename_table($ret, 'node_field_instance', 'content_node_field_instance');
variable_set('content_schema_version', 6001);
content_clear_type_cache(TRUE);
return $ret;
}