Migration Fix
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
@@ -11,7 +11,15 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
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']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -19,6 +27,9 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
//
|
DB::table('airlines')
|
||||||
|
->where('IATA_code', 'DJ')
|
||||||
|
->where('internal_name', 'virgin-blue-airlines')
|
||||||
|
->update(['logo' => 'DJ.png']);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user