Skip to content

Commit

Permalink
use default collation when creating tables
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed May 2, 2024
1 parent 73519ba commit e5d147f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 48 deletions.
3 changes: 2 additions & 1 deletion core/Db/Schema/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,12 @@ public function createTable($nameWithoutPrefix, $createDefinition)
$charset = $dbSettings->getUsedCharset();

$statement = sprintf(
"CREATE TABLE IF NOT EXISTS `%s` ( %s ) ENGINE=%s DEFAULT CHARSET=%s %s;",
"CREATE TABLE IF NOT EXISTS `%s` ( %s ) ENGINE=%s DEFAULT CHARSET=%s DEFAULT COLLATE %s_general_ci %s;",
Common::prefixTable($nameWithoutPrefix),
$createDefinition,
$this->getTableEngine(),
$charset,
$charset,
$dbSettings->getRowFormat()
);

Expand Down
94 changes: 47 additions & 47 deletions tests/resources/OmniFixture-dump.sql

Large diffs are not rendered by default.

0 comments on commit e5d147f

Please sign in to comment.