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