Added timezones
This commit is contained in:
@@ -13,6 +13,7 @@ class Airport extends Model
|
|||||||
'latitude_deg',
|
'latitude_deg',
|
||||||
'longitude_deg',
|
'longitude_deg',
|
||||||
'elevation_ft',
|
'elevation_ft',
|
||||||
|
'timezone',
|
||||||
'region_id',
|
'region_id',
|
||||||
'municipality',
|
'municipality',
|
||||||
'icao_code',
|
'icao_code',
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('airports', function (Blueprint $table) {
|
||||||
|
$table->string('timezone')->nullable()->after('elevation_ft');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('airports', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('timezone');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user