You are here

function tmgmt_update_7005 in Translation Management Tool 7

Add word count column to {tmgmt_job_item}.

File

./tmgmt.install, line 607
Installation hooks for the Translation Management module.

Code

function tmgmt_update_7005() {
  if (!db_field_exists('tmgmt_job_item', 'word_count')) {
    $spec = array(
      'description' => 'Word count of all texts contained in this job item.',
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
    );
    db_add_field('tmgmt_job_item', 'word_count', $spec);
  }
}