-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
86 additions
and
48 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
app/Database/migrations/2023_09_26_190028_add_new_fields_to_airports.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class() extends Migration { | ||
public function up() | ||
{ | ||
if (!Schema::hasColumns('airports', ['elevation', 'region'])) { | ||
Schema::table('airports', function (Blueprint $table) { | ||
$table->integer('elevation')->nullable()->after('lon'); | ||
$table->string('region', 150)->nullable()->after('location'); | ||
}); | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
icao,iata,name,location,country,timezone,hub,lat,lon,ground_handling_cost,fuel_100ll_cost,fuel_jeta_cost,fuel_mogas_cost,notes | ||
KAUS,AUS,Austin-Bergstrom,"Austin, Texas, USA", United States,America/Chicago,1,30.1945,-97.6699,0,,,,"Test Note" | ||
KSFO,SFO,San Francisco,"San Francisco, California, USA", United States,America/California,1,30.1945,-97.6699,,,0.9,, | ||
KJFK,JFK,Kennedy,"Queens, New York, USA", United States,America/New_York,0,30.1945,abcd,150,,0.8,,"Busy Airport" | ||
icao,iata,name,location,region,country,timezone,hub,lat,lon,elevation,ground_handling_cost,fuel_100ll_cost,fuel_jeta_cost,fuel_mogas_cost,notes | ||
KAUS,AUS,Austin-Bergstrom,"Austin","Texas",US,America/Chicago,1,30.1945,-97.6699,148,0,,,,"Test Note" | ||
KSFO,SFO,San Francisco,"San Francisco","California",US,America/California,1,30.1945,-97.6699,,,,0.9,, | ||
KJFK,JFK,Kennedy,"Queens","New York",US,America/New_York,0,30.1945,abcd,58,150,,0.8,,"Busy Airport" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
icao,iata,name,location,country,timezone,hub,lat,lon,ground_handling_cost,fuel_100ll_cost,fuel_jeta_cost,fuel_mogas_cost,notes | ||
EGLL,LHR,"London Heathrow","London, England",,Europe/London,,51.4775,-0.4614,500,0,0,0, | ||
KAUS,AUS,Austin-Bergstrom,"Austin, Texas, USA","United States",America/Chicago,1,30.1945,-97.6699,0,0,0,0,"Test Note" | ||
KJFK,JFK,"John F Kennedy","New York, New York, USA","United States",America/New_York,1,40.6399,-73.7787,250,0,0,0,"Busy Airport" | ||
KPAE,PAE,"Snohomish County (Paine Field) Airport",Everett,"United States",America/Los_Angeles,,47.9063,-122.282,0,0,0,0, | ||
KSEA,SEA,"Seattle Tacoma International Airport",Seattle,"United States",America/Los_Angeles,,47.449,-122.309,0,0,0,0, | ||
LEMD,MAD,"Adolfo Suárez Madrid–Barajas Airport",Madrid,Spain,Europe/Madrid,,40.4719,-3.5626,,0,0,0, | ||
MKJP,KIN,"Norman Manley International Airport","Kingston, Jamaica",,America/Jamaica,,17.9357,-76.7875,50,0,0,0, | ||
MWCR,GCM,"Owen Roberts International Airport",Georgetown,Cayman,America/Cayman,,19.2928,-81.3577,50,0,0,0, | ||
OMDB,DXB,"Dubai International Airport","Dubai, UAE",,Asia/Dubai,,25.2528,55.3644,50,0,0,0, | ||
icao,iata,name,location,region,country,timezone,hub,lat,lon,elevation,ground_handling_cost,fuel_100ll_cost,fuel_jeta_cost,fuel_mogas_cost,notes | ||
EGLL,LHR,"London Heathrow","London, England",,,Europe/London,,51.4775,-0.4614,-156,500,0,0,0, | ||
KAUS,AUS,Austin-Bergstrom,"Austin, Texas, USA","Texas","United States",America/Chicago,1,30.1945,-97.6699,,0,0,0,0,"Test Note" | ||
KJFK,JFK,"John F Kennedy","New York, New York, USA","New York","United States",America/New_York,1,40.6399,-73.7787,,250,0,0,0,"Busy Airport" | ||
KPAE,PAE,"Snohomish County (Paine Field) Airport",Everett,,"United States",America/Los_Angeles,,47.9063,-122.282,,0,0,0,0, | ||
KSEA,SEA,"Seattle Tacoma International Airport",Seattle,,"United States",America/Los_Angeles,,47.449,-122.309,,0,0,0,0, | ||
LEMD,MAD,"Adolfo Suárez Madrid–Barajas Airport",Madrid,,Spain,Europe/Madrid,,40.4719,-3.5626,,,0,0,0, | ||
MKJP,KIN,"Norman Manley International Airport","Kingston, Jamaica",,,America/Jamaica,,17.9357,-76.7875,98,50,0,0,0, | ||
MWCR,GCM,"Owen Roberts International Airport",Georgetown,,Cayman,America/Cayman,,19.2928,-81.3577,459,50,0,0,0, | ||
OMDB,DXB,"Dubai International Airport","Dubai, UAE",,,Asia/Dubai,,25.2528,55.3644,,50,0,0,0, |