更新 'installer/Migration/V5_4_0/Migration.php'
This commit is contained in:
parent
71c3e53235
commit
9dc69231eb
@ -42,14 +42,6 @@ class Migration extends AbstractMigration
|
||||
$this->getLangStringHelper()->insertOrUpdateLangStrings($group);
|
||||
}
|
||||
|
||||
$this->updateLangStringVersion($this->getVersion());
|
||||
|
||||
$langCodes = [
|
||||
'zh_Hans_CN'
|
||||
];
|
||||
foreach ($langCodes as $langCode) {
|
||||
// $this->getTranslationHelper()->addTranslations($langCode);
|
||||
}
|
||||
|
||||
$this->getConnection()->createQueryBuilder()
|
||||
->insert('ohrm_module')
|
||||
@ -125,6 +117,15 @@ class Migration extends AbstractMigration
|
||||
$this->getSchemaHelper()->addOrChangeColumns('ohrm_migration_log', [
|
||||
'php_version' => ['Type' => Type::getType(Types::STRING), 'Length' => 255],
|
||||
]);
|
||||
|
||||
$langCodes = [
|
||||
'en_US',
|
||||
'zh_Hans_CN'
|
||||
];
|
||||
foreach ($langCodes as $langCode) {
|
||||
$this->getTranslationHelper()->addTranslations($langCode);
|
||||
}
|
||||
$this->updateLangStringVersion($this->getVersion());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user