diff --git a/db/migrations/5.1.47_add_consultation_tab_title_translation.php b/db/migrations/5.1.47_add_consultation_tab_title_translation.php new file mode 100644 index 0000000000000000000000000000000000000000..3e69457195479bdbbc4d48fa601fa4891e2770e7 --- /dev/null +++ b/db/migrations/5.1.47_add_consultation_tab_title_translation.php @@ -0,0 +1,26 @@ +<?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); + } +}