Migration Fix
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user