mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-26 11:19:14 +02:00
UserDomainMigration: Always use utf8
as connection charset
This commit is contained in:
parent
e8ae6c912d
commit
571f59be46
@ -206,8 +206,11 @@ class UserDomainMigration
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case 'db':
|
case 'db':
|
||||||
|
$resourceConfig = ResourceFactory::getResourceConfig($config->get('global', 'config_resource'));
|
||||||
|
$resourceConfig->charset = 'utf8';
|
||||||
|
|
||||||
/** @var DbConnection $conn */
|
/** @var DbConnection $conn */
|
||||||
$conn = ResourceFactory::create($config->get('global', 'config_resource'));
|
$conn = ResourceFactory::createResource($resourceConfig);
|
||||||
|
|
||||||
$query = $conn
|
$query = $conn
|
||||||
->select()
|
->select()
|
||||||
@ -288,8 +291,11 @@ class UserDomainMigration
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$resourceConfig = ResourceFactory::getResourceConfig($config->resource);
|
||||||
|
$resourceConfig->charset = 'utf8';
|
||||||
|
|
||||||
/** @var DbConnection $conn */
|
/** @var DbConnection $conn */
|
||||||
$conn = ResourceFactory::create($config->resource);
|
$conn = ResourceFactory::createResource($resourceConfig);
|
||||||
|
|
||||||
$query = $conn
|
$query = $conn
|
||||||
->select()
|
->select()
|
||||||
@ -336,8 +342,11 @@ class UserDomainMigration
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$resourceConfig = ResourceFactory::getResourceConfig($config->resource);
|
||||||
|
$resourceConfig->charset = 'utf8';
|
||||||
|
|
||||||
/** @var DbConnection $conn */
|
/** @var DbConnection $conn */
|
||||||
$conn = ResourceFactory::create($config->resource);
|
$conn = ResourceFactory::createResource($resourceConfig);
|
||||||
|
|
||||||
$query = $conn
|
$query = $conn
|
||||||
->select()
|
->select()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user