Add UTF8 charset to connection params
This commit is contained in:
parent
e4c31b362e
commit
22edc42f54
1 changed files with 10 additions and 0 deletions
|
@ -99,6 +99,16 @@ class ConvertFromSqlite extends Command {
|
|||
if ($input->getOption('port')) {
|
||||
$connectionParams['port'] = $input->getOption('port');
|
||||
}
|
||||
switch ($type) {
|
||||
case 'mysql':
|
||||
case 'mssql':
|
||||
$connectionParams['charset'] = 'UTF8';
|
||||
break;
|
||||
case 'oci':
|
||||
$connectionParams['charset'] = 'AL32UTF8';
|
||||
break;
|
||||
}
|
||||
|
||||
$toDB = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
|
||||
|
||||
// create tables in new database
|
||||
|
|
Loading…
Reference in a new issue