diff --git a/migrations/004_add_custom_texts.php b/migrations/004_add_custom_texts.php index 4e8ed95..1aee746 100644 --- a/migrations/004_add_custom_texts.php +++ b/migrations/004_add_custom_texts.php @@ -60,13 +60,13 @@ public function down() LEFT JOIN `config_values` USING (`field`) LEFT JOIN `i18n` ON `table` = 'config' - AND `field` = 'value' + AND `i18n`.`field` = 'value' AND `object_id` = MD5(`config`.`field`) - WHERE `field` IN ( + WHERE `config`.`field` IN ( 'KITOOLBOX_TEXT_ESSENTIAL', 'KITOOLBOX_TEXT_RULES_FOR_TOOLS_TEMPLATE', 'KITOOLBOX_TEXT_LANDING_PAGE_STUDENT', - 'KITOOLBOX_TEXT_LANDING_PAGE_TEACHER', + 'KITOOLBOX_TEXT_LANDING_PAGE_TEACHER' )"; DBManager::get()->exec($query);