Migration Fix
This commit is contained in:
@@ -11,7 +11,16 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
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
|
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
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user