From 0c4786de37e26fb98e6ada6bb9bc39ebf22076f7 Mon Sep 17 00:00:00 2001 From: Antoine MARQUES <93318966+AntoineMarques@users.noreply.github.com> Date: Thu, 11 Jul 2024 10:20:39 +0200 Subject: [PATCH] Update MySqlSchemaAdapter.php `Generator/PhinxMySqlGenerator::getTableMigrationNewDatabase` expects upper case --- src/Migration/Adapter/Database/MySqlSchemaAdapter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Migration/Adapter/Database/MySqlSchemaAdapter.php b/src/Migration/Adapter/Database/MySqlSchemaAdapter.php index b1cca51c4..6612a068c 100644 --- a/src/Migration/Adapter/Database/MySqlSchemaAdapter.php +++ b/src/Migration/Adapter/Database/MySqlSchemaAdapter.php @@ -145,8 +145,8 @@ public function getSchema($tableNames = null): array private function getDatabaseSchemata(string $dbName): array { $sql = 'SELECT - default_character_set_name, - default_collation_name + DEFAULT_CHARACTER_SET_NAME, + DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE schema_name = %s;'; $sql = sprintf($sql, $this->quote($dbName));