From fc27db38c98bae34573f3a60b3fc605644e58788 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Fri, 5 May 2023 17:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'installer/Migration/V5=5F?= =?UTF-8?q?4=5F0/Migration.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/Migration/V5_4_0/Migration.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/installer/Migration/V5_4_0/Migration.php b/installer/Migration/V5_4_0/Migration.php index 9df0e99..07040f1 100644 --- a/installer/Migration/V5_4_0/Migration.php +++ b/installer/Migration/V5_4_0/Migration.php @@ -37,14 +37,6 @@ class Migration extends AbstractMigration public function up(): void { - $langCodes = [ - 'zh_Hans_CN' - ]; - foreach ($langCodes as $langCode) { - $this->getTranslationHelper()->addTranslations($langCode); - } - - $groups = ['admin', 'auth', 'general']; foreach ($groups as $group) { $this->getLangStringHelper()->insertOrUpdateLangStrings($group); @@ -52,6 +44,13 @@ class Migration extends AbstractMigration $this->updateLangStringVersion($this->getVersion()); + $langCodes = [ + 'zh_Hans_CN' + ]; + foreach ($langCodes as $langCode) { + $this->getTranslationHelper()->addTranslations($langCode); + } + $this->getConnection()->createQueryBuilder() ->insert('ohrm_module') ->values(