function lingotek_update_7212 in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.install \lingotek_update_7212()
- 7.3 lingotek.install \lingotek_update_7212()
- 7.4 lingotek.install \lingotek_update_7212()
- 7.5 lingotek.install \lingotek_update_7212()
Adds the lingotek_entity_metadata table.
File
- ./
lingotek.install, line 489
Code
function lingotek_update_7212(&$sandbox) {
$module = 'lingotek';
$table = 'lingotek_config_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;
}