From e7ad41aedee3c961d2e7ee71999da4e0fb88e21a Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 1 Apr 2026 16:02:19 +1000 Subject: [PATCH] Migration Fix --- .../2026_04_01_060046_fix_copa_again.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/2026_04_01_060046_fix_copa_again.php 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']); + } +};