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 + ]); } };