diff --git a/app/Database/migrations/2024_07_09_210356_update_db_charset.php b/app/Database/migrations/2024_07_09_210356_update_db_charset.php index 01fabddbc..9891662ff 100644 --- a/app/Database/migrations/2024_07_09_210356_update_db_charset.php +++ b/app/Database/migrations/2024_07_09_210356_update_db_charset.php @@ -22,9 +22,7 @@ public function up() ->where('schema_name', config('database.connections.mysql.database')) ->first(); - dd($query); - - if ($query?->default_character_set_name === 'utf8mb4') { + if ((property_exists($query, 'default_character_set_name') && $query->default_character_set_name === 'utf8mb4') || (property_exists($query, 'DEFAULT_CHARACTER_SET_NAME') && $query->DEFAULT_CHARACTER_SET_NAME === 'utf8mb4')) { return; }