More data updates
This commit is contained in:
@@ -76,3 +76,4 @@ error_log
|
|||||||
/config.php
|
/config.php
|
||||||
/config.bak.php
|
/config.bak.php
|
||||||
/VERSION
|
/VERSION
|
||||||
|
sync.sh
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ airports:
|
|||||||
ground_handling_cost: 100
|
ground_handling_cost: 100
|
||||||
- id: KPHN
|
- id: KPHN
|
||||||
iata: HPN
|
iata: HPN
|
||||||
icao: KAUS
|
icao: KPHN
|
||||||
name: Westchester County Airport
|
name: Westchester County Airport
|
||||||
location: White Plains
|
location: White Plains
|
||||||
country: United States
|
country: United States
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -135,9 +135,9 @@ class Database
|
|||||||
->update($row);
|
->update($row);
|
||||||
} else {
|
} else {
|
||||||
// Remove ID column if it exists and its empty, let the DB set it
|
// Remove ID column if it exists and its empty, let the DB set it
|
||||||
if (array_key_exists($id_col, $row) && empty($row[$id_col])) {
|
/*if (array_key_exists($id_col, $row) && empty($row[$id_col])) {
|
||||||
unset($row[$id_col]);
|
unset($row[$id_col]);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
DB::table($table)->insert($row);
|
DB::table($table)->insert($row);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user