fix pirep ids in sample; rename navs to flight reports

This commit is contained in:
Nabeel Shahzad
2018-02-24 16:05:00 -06:00
parent d0b3b27975
commit 3bbcd2a20d
5 changed files with 11 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ class CreatePirepTables extends Migration
$table->bigIncrements('id');
$table->string('pirep_id', \App\Models\Pirep::ID_MAX_LENGTH);
$table->unsignedInteger('fare_id');
$table->unsignedInteger('count')->nullable();
$table->unsignedInteger('count')->nullable()->default(0);
$table->index('pirep_id');
});

View File

@@ -338,23 +338,23 @@ pireps:
pirep_fares:
- id: 1
pirep_id: pirep_id_1
pirep_id: pirepid_1
fare_id: 1
count: 300
- id: 2
pirep_id: pirep_id_1
pirep_id: pirepid_1
fare_id: 2
count: 25
- id: 3
pirep_id: pirep_id_1
pirep_id: pirepid_1
fare_id: 3
count: 10
- id: 4
pirep_id: pirep_id_2
pirep_id: pirepid_2
fare_id: 1
count: 200
- id: 5
pirep_id: pirep_id_2
pirep_id: pirepid_2
fare_id: 3
count: 15