From 168d6a74c9b97f5df537d875166f1d8c08cb3e86 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Thu, 29 Apr 2021 18:24:29 +0100 Subject: [PATCH] Charset (#213) * feature: use utf8mb4_0900_ai_ci as default charset * feature: use utf8mb4_general_ci as default charset --- src/Connection/DefaultSettings.php | 4 ++-- src/Connection/Settings.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Connection/DefaultSettings.php b/src/Connection/DefaultSettings.php index 1db842a..fcb4200 100644 --- a/src/Connection/DefaultSettings.php +++ b/src/Connection/DefaultSettings.php @@ -7,7 +7,7 @@ class DefaultSettings implements SettingsInterface { use ImmutableSettings; const CHARSET = "utf8mb4"; - const COLLATION = "utf8mb4_0900_ai_ci"; + const COLLATION = "utf8mb4_general_ci"; const DEFAULT_NAME = "default"; const DEFAULT_DRIVER = Settings::DRIVER_SQLITE; @@ -31,7 +31,7 @@ class DefaultSettings implements SettingsInterface { ]; const DEFAULT_CHARSET = "utf8mb4"; - const DEFAULT_COLLATION = "utf8mb4_0900_ai_ci"; + const DEFAULT_COLLATION = "utf8mb4_general_ci"; /** @var string */ protected $baseDirectory; diff --git a/src/Connection/Settings.php b/src/Connection/Settings.php index 765763f..1e12e2b 100644 --- a/src/Connection/Settings.php +++ b/src/Connection/Settings.php @@ -5,7 +5,7 @@ class Settings implements SettingsInterface { use ImmutableSettings; const CHARSET = "utf8mb4"; - const COLLATION = "utf8mb4_0900_ai_ci"; + const COLLATION = "utf8mb4_general_ci"; const DRIVER_MYSQL = "mysql"; const DRIVER_POSTGRES = "pgsql";