Compare commits

..

3 Commits

Author SHA1 Message Date
dredgy fc9e67ad2b Migration Fix 2026-04-02 09:37:34 +10:00
dredgy 2c51a10bb0 Migration Fix 2026-04-02 09:37:29 +10:00
dredgy dfa68b0ad9 Migration Fix 2026-04-01 16:45:13 +10:00
3 changed files with 61 additions and 0 deletions
@@ -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
{
//
}
};