Migration Fix

This commit is contained in:
2026-04-01 16:28:00 +10:00
parent e7ad41aede
commit 22d978f6ca
@@ -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']);
}
};