Skip to content
Snippets Groups Projects
Commit da5ab26f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

add migration that adds the missing default translation for CONSULTATION_TAB_TITLE, fixes #2690

Closes #2690

Merge request !1819
parent 8105a913
No related branches found
No related tags found
No related merge requests found
<?php
final class AddConsultationTabTitleTranslation extends Migration
{
public function description()
{
return 'Adds the missing default translation for configuration CONSULTATION_TAB_TITLE';
}
protected function up()
{
$query = "INSERT IGNORE INTO `i18n` (`object_id`, `table`, `field`, `lang`, `value`)
VALUES (MD5('CONSULTATION_TAB_TITLE'), 'config', 'value', 'en_GB', 'Date allocation')";
DBManager::get()->exec($query);
}
protected function down()
{
$query = "DELETE FROM `i18n`
WHERE `object_id` = MD5('CONSULTATION_TAB_TITLE')
AND `table` = 'config'
AND `field` = 'value'
AND `lang` = 'en_GB'
AND `value` = 'Date allocation'";
DBManager::get()->exec($query);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment