function node_limit_update_7001 in Node Limit 7
Same name and namespace in other branches
- 8 old/node_limit.install \node_limit_update_7001()
Implements hook_update_N(). Renaming limit field to avoid mysql restricted name usage.
File
- ./
node_limit.install, line 58
Code
function node_limit_update_7001() {
// Cannot use db_change_field() because of the restricted name
$ret = db_query("ALTER TABLE {node_limit} CHANGE `limit` `limit_count` INT(11) NOT NULL DEFAULT '-1' COMMENT 'The node limit for this limit'");
return !empty($ret);
}