PreferencesCommand: Always use utf8 as connection charset

This commit is contained in:
Johannes Meyer 2021-07-26 16:54:22 +02:00
parent aee82ad342
commit e8ae6c912d

View File

@ -35,7 +35,9 @@ class PreferencesCommand extends Command
$resource = $this->params->getRequired('resource');
}
$connection = ResourceFactory::create($resource);
$resourceConfig = ResourceFactory::getResourceConfig($resource);
$resourceConfig->charset = 'utf8';
$connection = ResourceFactory::createResource($resourceConfig);
$preferencesPath = Config::resolvePath('preferences');
if (! file_exists($preferencesPath)) {