* [FIX] Fixed issue when upgrading categories from v2

* [MOD] Improved database queries when upgrading
* [MOD] Changed database and table collation to utf8_unicode_ci
This commit is contained in:
nuxsmin
2018-09-11 15:54:35 +02:00
committed by Rubén D
parent e96d2ccfa2
commit 471d12ac4e
8 changed files with 140 additions and 64 deletions

View File

@@ -207,7 +207,7 @@ final class MySQL implements DatabaseSetupInterface
try {
$dbc = $this->mysqlHandler->getConnectionSimple();
$dbc->exec('CREATE SCHEMA `' . $this->installData->getDbName() . '` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci');
$dbc->exec('CREATE SCHEMA `' . $this->installData->getDbName() . '` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci');
} catch (PDOException $e) {
throw new SPException(
sprintf(__('Error al crear la BBDD (\'%s\')'), $e->getMessage()),