Update seeds for a shorter test flight

This commit is contained in:
Nabeel Shahzad
2022-01-27 12:14:28 -05:00
parent 6160d57790
commit 27be992395
3 changed files with 49 additions and 9 deletions

View File

@@ -134,6 +134,11 @@ class Database
->where($id_col, $row[$id_col])
->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])) {
unset($row[$id_col]);
}
DB::table($table)->insert($row);
}
} catch (QueryException $e) {