diff --git a/database/migrations/2026_04_01_060046_fix_copa_again.php b/database/migrations/2026_04_01_060046_fix_copa_again.php new file mode 100644 index 0000000..a89a093 --- /dev/null +++ b/database/migrations/2026_04_01_060046_fix_copa_again.php @@ -0,0 +1,30 @@ +where('IATA_code', 'CM') + ->whereNull('ICAO_code') + ->update(['logo' => '']); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + DB::table('airlines') + ->where('IATA_code', 'CM') + ->whereNull('ICAO_code') + ->update(['logo' => 'CM.png']); + } +};