From 29b84f92811e16a1f5690f6974e9062193439559 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 22 Mar 2018 22:21:54 -0500 Subject: [PATCH] Reverse the iata/icao columns for airport import --- app/Services/ImportExport/AirportImporter.php | 2 +- tests/data/airports.csv | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/ImportExport/AirportImporter.php b/app/Services/ImportExport/AirportImporter.php index aee4a2ca..605e9707 100644 --- a/app/Services/ImportExport/AirportImporter.php +++ b/app/Services/ImportExport/AirportImporter.php @@ -18,8 +18,8 @@ class AirportImporter extends ImportExport * Should match the database fields, for the most part */ public static $columns = [ - 'iata', 'icao', + 'iata', 'name', 'location', 'country', diff --git a/tests/data/airports.csv b/tests/data/airports.csv index 31778f19..6482b8d2 100644 --- a/tests/data/airports.csv +++ b/tests/data/airports.csv @@ -1,2 +1,2 @@ -iata,icao,name,location,country,timezone,hub,lat,lon -AUS,KAUS,Austin-Bergstrom,"Austin, Texas, USA", United States,America/Chicago,1,30.1945,-97.6699 +icao,iata,name,location,country,timezone,hub,lat,lon +KAUS,AUS,Austin-Bergstrom,"Austin, Texas, USA", United States,America/Chicago,1,30.1945,-97.6699