You are here

function lingotek_update_7206 in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.install \lingotek_update_7206()
  2. 7.2 lingotek.install \lingotek_update_7206()
  3. 7.3 lingotek.install \lingotek_update_7206()
  4. 7.4 lingotek.install \lingotek_update_7206()
  5. 7.5 lingotek.install \lingotek_update_7206()

Adds the lingotek_entity_metadata table.

File

./lingotek.install, line 411

Code

function lingotek_update_7206(&$sandbox) {
  $module = 'lingotek';
  $table = 'lingotek_entity_metadata';
  if (!db_table_exists($table)) {
    $schema = drupal_get_schema_unprocessed($module, $table);
    db_create_table($table, $schema);
    $output = t('Table @table was created.', array(
      '@table' => $table,
    ));
  }
  else {
    $output = t('The @table table already exists. No action taken.', array(
      '@table' => $table,
    ));
  }
  return $output;
}