Add fuel_used column to PIREPs table

This commit is contained in:
Nabeel Shahzad
2018-01-30 11:27:39 -06:00
parent 7300cdddf4
commit 9a426f79f9
4 changed files with 5 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ $factory->define(App\Models\Pirep::class, function (Faker $faker) {
'planned_flight_time' => $faker->randomFloat(2),
'zfw' => $faker->randomFloat(2),
'block_fuel' => $faker->randomFloat(2),
'fuel_used' => $faker->randomFloat(2),
'route' => $faker->text(200),
'notes' => $faker->text(200),
'source' => $faker->randomElement([PirepSource::MANUAL, PirepSource::ACARS]),

View File

@@ -35,6 +35,7 @@ class CreatePirepTables extends Migration
$table->unsignedDecimal('planned_flight_time', 19)->nullable();
$table->unsignedDecimal('zfw', 19)->nullable();
$table->unsignedDecimal('block_fuel', 19)->nullable();
$table->unsignedDecimal('fuel_used', 19)->nullable();
$table->decimal('landing_rate', 19)->nullable();
$table->text('route')->nullable();
$table->text('notes')->nullable();