diff --git a/.env.example b/.env.example index 4c0b8d4..be18dae 100644 --- a/.env.example +++ b/.env.example @@ -30,6 +30,14 @@ DB_DATABASE=flightsapi DB_USERNAME=root DB_PASSWORD= +PRODUCTION_DB_CONNECTION= +PRODUCTION_DB_HOST= +PRODUCTION_DB_PORT= +PRODUCTION_DB_DATABASE= +PRODUCTION_DB_USERNAME= +PRODUCTION_DB_PASSWORD= + + SESSION_DRIVER=database SESSION_LIFETIME=120 SESSION_ENCRYPT=false diff --git a/database/migrations/2026_04_03_042002_add_western_sydney_airport.php b/database/migrations/2026_04_03_042002_add_western_sydney_airport.php new file mode 100644 index 0000000..b64aa2a --- /dev/null +++ b/database/migrations/2026_04_03_042002_add_western_sydney_airport.php @@ -0,0 +1,34 @@ +where('code', 'AU-NSW')->firstOrFail(); + + DB::table('airports')->insert([ + 'type' => 'large_airport', // large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport, closed + 'name' => 'Western Sydney International Airport', + 'latitude_deg' => -33.883461, + 'longitude_deg'=> 150.712981, + 'elevation_ft' => 262, + 'region_id' => $region->id, + 'municipality' => 'Sydney', + 'icao_code' => $this->icaoCode, + 'iata_code' => 'WSI', + 'local_code' => null, + 'created_at' => now(), + 'updated_at' => now(), + ]); + } + + public function down(): void + { + DB::table('airports')->where('icao_code', $this->icaoCode)->delete(); + } +};