You are here

function tmgmt_update_7013 in Translation Management Tool 7

Shortens reference and label fields in {tmgmt_job} to length 255.

Avoids issues with InnoDB and UTF-8 key limits.

File

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

Code

function tmgmt_update_7013() {
  db_drop_index('tmgmt_job', 'reference');
  db_change_field('tmgmt_job', 'reference', 'reference', array(
    'description' => 'Remote identifier of this translation job.',
    'type' => 'varchar',
    'length' => 255,
  ));
  db_change_field('tmgmt_job', 'label', 'label', array(
    'description' => 'Optional user provided label of the job.',
    'type' => 'varchar',
    'length' => 255,
  ));
  db_add_index('tmgmt_job', 'reference', array(
    'reference',
  ));
}