function node_limit_update_6002 in Node Limit 6
Renaming limit field to avoid mysql restricted name usage
File
- ./
node_limit.install, line 70 - Installation functions for module node_limit.
Code
function node_limit_update_6002() {
// Cannot use db_change_field() because of the restricted name
$ret = db_query("ALTER TABLE {node_limit} CHANGE `limit` `nlimit` INT(11) NOT NULL DEFAULT '-1' COMMENT 'The node limit for this limit'");
return !empty($ret);
}