function workbench_moderation_update_7010 in Workbench Moderation 7
Same name and namespace in other branches
- 7.3 workbench_moderation.install \workbench_moderation_update_7010()
Comply with SQL-99: Rename the 'current' column to 'is_current'.
File
- ./
workbench_moderation.install, line 659 - Install file for the Workbench Moderation module.
Code
function workbench_moderation_update_7010() {
$table = 'workbench_moderation_node_history';
$field = 'current';
$field_new = 'is_current';
$spec = array(
'description' => 'Indicated the current revision of a node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
);
db_change_field($table, $field, $field_new, $spec);
return t("Renamed 'current' column in node_history table");
}