More data updates

This commit is contained in:
Nabeel Shahzad
2022-01-27 13:30:49 -05:00
parent 27be992395
commit 723f66a382
4 changed files with 19 additions and 20 deletions

1
.gitignore vendored
View File

@@ -76,3 +76,4 @@ error_log
/config.php
/config.bak.php
/VERSION
sync.sh

View File

@@ -36,7 +36,7 @@ airports:
ground_handling_cost: 100
- id: KPHN
iata: HPN
icao: KAUS
icao: KPHN
name: Westchester County Airport
location: White Plains
country: United States

File diff suppressed because one or more lines are too long

View File

@@ -135,9 +135,9 @@ class Database
->update($row);
} else {
// 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]);
}
}*/
DB::table($table)->insert($row);
}