You are here

function lingotek_update_6200 in Lingotek Translation 6

File

./lingotek.install, line 122
Installation for Lingotek Community Translation Module

Code

function lingotek_update_6200() {
  variable_del('lingotek_languages');
  $schema['lingotek_mt_queue'] = array(
    'description' => 'Table for storing a Machine Translation queue.',
    'fields' => array(
      'uid' => array(
        'description' => 'The primary identifier for a user.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'nid' => array(
        'description' => 'The primary identifier for a node.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'language' => array(
        'description' => 'Language to machine translate',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'engine' => array(
        'description' => 'Engine used to machine translate',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
  );
  $ret = array();
  db_create_table($ret, 'lingotek_mt_queue', $schema['lingotek_mt_queue']);
  return $ret;
}