Compare commits
3 Commits
e4e5afafa7
...
fc9e67ad2b
| Author | SHA1 | Date | |
|---|---|---|---|
| fc9e67ad2b | |||
| 2c51a10bb0 | |||
| dfa68b0ad9 |
@@ -41,9 +41,11 @@ return new class extends Migration
|
|||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
DB::table('airlines')->where('internal_name', 'bonza')->delete();
|
DB::table('airlines')->where('internal_name', 'bonza')->delete();
|
||||||
|
|
||||||
DB::table('airlines')
|
DB::table('airlines')
|
||||||
->where('IATA_code', 'AB')
|
->where('IATA_code', 'AB')
|
||||||
->update(['logo' => 'AB.png']);
|
->update(['logo' => 'AB.png']);
|
||||||
|
|
||||||
DB::table('airlines')
|
DB::table('airlines')
|
||||||
->where('IATA_code', 'AB')
|
->where('IATA_code', 'AB')
|
||||||
->where('ICAO_code', 'BER')
|
->where('ICAO_code', 'BER')
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
DB::table('airlines')
|
||||||
|
->where('IATA_code', 'DJ')
|
||||||
|
->where('internal_name', 'virgin-blue-airlines')
|
||||||
|
->update(['logo' => 'VA.png']);
|
||||||
|
|
||||||
|
DB::table('airlines')
|
||||||
|
->where('IATA_code', 'VA')
|
||||||
|
->where('internal_name', 'virgin-australia')
|
||||||
|
->update(['logo' => 'VA.png']);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
DB::table('airlines')
|
||||||
|
->where('IATA_code', 'DJ')
|
||||||
|
->where('internal_name', 'virgin-blue-airlines')
|
||||||
|
->update(['logo' => 'DJ.png']);
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user