diff --git a/database/migrations/2026_04_05_081330_fix_gol.php b/database/migrations/2026_04_05_081330_fix_gol.php new file mode 100644 index 0000000..93c5a9e --- /dev/null +++ b/database/migrations/2026_04_05_081330_fix_gol.php @@ -0,0 +1,55 @@ +where('internal_name', 'gol-airlines') + ->update([ + 'ICAO_code' => 'GLO', + 'active' => true, + ]); + + DB::table('airlines') + ->where('internal_name', 'jetgo') + ->update([ + 'logo' => 'JG_1.png', + 'active' => false, + ]); + + DB::table('airlines') + ->where('internal_name', 'turpial') + ->update([ + 'logo' => 'T9.png', + 'IATA_code' => 'T9', + ]); + } + + public function down(): void + { + DB::table('airlines') + ->where('internal_name', 'gol-airlines') + ->update([ + 'ICAO_code' => '', + 'active' => false, + ]); + + DB::table('airlines') + ->where('internal_name', 'jetgo') + ->update([ + 'logo' => 'JG.png', + 'active' => true, + ]); + + DB::table('airlines') + ->where('internal_name', 'turpial') + ->update([ + 'logo' => '', + 'IATA_code' => '', + ]); + } +};