diff --git a/database/migrations/2026_04_01_060046_fix_copa_again.php b/database/migrations/2026_04_01_060046_fix_copa_again.php index a89a093..c22f0db 100644 --- a/database/migrations/2026_04_01_060046_fix_copa_again.php +++ b/database/migrations/2026_04_01_060046_fix_copa_again.php @@ -13,8 +13,11 @@ return new class extends Migration { DB::table('airlines') ->where('IATA_code', 'CM') - ->whereNull('ICAO_code') - ->update(['logo' => '']); + ->where(function($query) { + $query->whereNull('ICAO_code') + ->orWhere('ICAO_code', ''); + }) + ->update(['logo' => null]); } /** @@ -24,7 +27,10 @@ return new class extends Migration { DB::table('airlines') ->where('IATA_code', 'CM') - ->whereNull('ICAO_code') + ->where(function($query) { + $query->whereNull('ICAO_code') + ->orWhere('ICAO_code', ''); + }) ->update(['logo' => 'CM.png']); } };