Save user flights
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('airlines')
|
||||
->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' => '',
|
||||
]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user