Skip to content

Commit

Permalink
Корректировка кода, по умолчанию выставлена кодировка utf8mb4
Browse files Browse the repository at this point in the history
  • Loading branch information
vamcart committed Nov 22, 2018
1 parent 5733b27 commit 7d381d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Install/src/InstallManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function createDatabaseFile($config)
}

$configPath = ROOT . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'app.php';
foreach (['host', 'username', 'password', 'database', 'driver'] as $field) {
foreach (['host', 'username', 'password', 'database', 'driver', 'encoding'] as $field) {
if (isset($config[$field]) && (!empty($config[$field] || $field == 'password'))) {
$this->_updateDatasourceConfig($configPath, $field, $config[$field]);
}
Expand Down

0 comments on commit 7d381d8

Please sign in to comment.