更新 'installer/Migration/V5_4_0/Migration.php'

This commit is contained in:
zhongjin 2023-05-05 17:01:59 +08:00
parent dccf277a63
commit fc27db38c9

View File

@ -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(