From d0fe6d78d39721c65bf8818a084d556c6fb67b97 Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 5 Apr 2026 18:49:02 +1000 Subject: [PATCH] Save user flights --- .../migrations/2026_04_05_081330_fix_gol.php | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 database/migrations/2026_04_05_081330_fix_gol.php 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' => '', + ]); + } +};