function tmgmt_update_7008 in Translation Management Tool 7
Introduce the reviewed counter and rename approved.
File
- ./
tmgmt.install, line 686 - Installation hooks for the Translation Management module.
Code
function tmgmt_update_7008() {
// Rename approved to reviewed to simplify the upgrade path.
db_change_field('tmgmt_job_item', 'count_approved', 'count_reviewed', array(
'description' => 'Counter for all reviewed data items.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
// Add the accepted counter.
db_add_field('tmgmt_job_item', 'count_accepted', array(
'description' => 'Counter for all accepted data items.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
}