From 22d978f6ca3805996576cb986bbfd00e400a8c12 Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 1 Apr 2026 16:28:00 +1000 Subject: [PATCH] Migration Fix --- .../migrations/2026_04_01_060046_fix_copa_again.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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']); } };