Added timezones

This commit is contained in:
2026-04-04 18:14:33 +10:00
parent 6bb6ff7f71
commit baff2066e6
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -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');
});
}
};