function content_update_1000 in Content Construction Kit (CCK) 5
Start 5.0 update series
First, catch up for databases which did not get node_type table renamed in 4.7 before updating to 5.0 We'll know them because update_8 will rename the node_type table to node_content_type leaving no table named node_type A core patch has been submitted to get the rename done by the system module, so we need to test whether the table is already renamed
File
- ./
content.install, line 348
Code
function content_update_1000() {
$ret = array();
if (!db_table_exists('node_type')) {
// rerun system_update_1005(), if it failed the first time it was run
$ret = system_update_1005();
}
return $ret;
}