* Return the flight fares if there are no subfleet fares #488 * Formatting * Formatting
This commit is contained in:
@@ -16,9 +16,9 @@ class RankImport extends BaseImporter
|
||||
$count = 0;
|
||||
foreach ($this->db->readRows($this->table, $start) as $row) {
|
||||
$rank = Rank::firstOrCreate(['name' => $row->rank], [
|
||||
'image_url' => $row->rankimage,
|
||||
'hours' => $row->minhours,
|
||||
]);
|
||||
'image_url' => $row->rankimage,
|
||||
'hours' => $row->minhours,
|
||||
]);
|
||||
|
||||
$this->idMapper->addMapping('ranks', $row->rankid, $rank->id);
|
||||
$this->idMapper->addMapping('ranks', $row->rank, $rank->id);
|
||||
|
||||
@@ -38,7 +38,7 @@ class ImporterDB
|
||||
'host='.$this->creds['host'],
|
||||
'port='.$this->creds['port'],
|
||||
'dbname='.$this->creds['name'],
|
||||
]);
|
||||
]);
|
||||
|
||||
Log::info('Using DSN: '.$this->dsn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user