From 98d24e9b389ab274ecd30c1e0a8425a7cd705685 Mon Sep 17 00:00:00 2001 From: josh Date: Thu, 2 Apr 2026 09:46:58 +1000 Subject: [PATCH] Migration Fix --- .../2026_04_01_233719_update_legacy_logos.php | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/database/migrations/2026_04_01_233719_update_legacy_logos.php b/database/migrations/2026_04_01_233719_update_legacy_logos.php index 88fa2f3..92cb3aa 100644 --- a/database/migrations/2026_04_01_233719_update_legacy_logos.php +++ b/database/migrations/2026_04_01_233719_update_legacy_logos.php @@ -11,7 +11,16 @@ return new class extends Migration */ public function up(): void { - // + DB::table('airlines') + ->where('internal_name', 'virgin-blue-airlines') + ->update(['logo' => 'DJ_1.png']); + + DB::table('airlines') + ->where('internal_name', 'continental-airlines') + ->update([ + 'logo' => 'CO_1.png', + 'IATA_code' => 'CO' + ]); } /** @@ -19,6 +28,15 @@ return new class extends Migration */ public function down(): void { - // + DB::table('airlines') + ->where('internal_name', 'virgin-blue-airlines') + ->update(['logo' => 'VA.png']); + + DB::table('airlines') + ->where('internal_name', 'continental-airlines') + ->update([ + 'logo' => null, + 'IATA_code' => null + ]); } };