Cleanup column types and assign Time class to fields #189

This commit is contained in:
Nabeel Shahzad
2018-02-11 20:38:56 -06:00
parent fd4407a798
commit 61af5fe226
8 changed files with 89 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ class CreateFlightTables extends Migration
$table->string('arr_time', 10)->nullable();
$table->unsignedInteger('level')->nullable()->default(0);
$table->unsignedDecimal('distance', 19)->nullable()->default(0.0);
$table->unsignedDecimal('flight_time', 19)->nullable();
$table->unsignedInteger('flight_time')->nullable();
$table->tinyInteger('flight_type')->default(FlightType::PASSENGER);
$table->text('route')->nullable();
$table->text('notes')->nullable();

View File

@@ -31,8 +31,8 @@ class CreatePirepTables extends Migration
$table->unsignedInteger('level')->nullable();
$table->unsignedDecimal('distance')->nullable();
$table->unsignedDecimal('planned_distance')->nullable();
$table->unsignedDecimal('flight_time', 19)->nullable();
$table->unsignedDecimal('planned_flight_time', 19)->nullable();
$table->unsignedInteger('flight_time')->nullable();
$table->unsignedInteger('planned_flight_time')->nullable();
$table->unsignedDecimal('zfw', 19)->nullable();
$table->unsignedDecimal('block_fuel', 19)->nullable();
$table->unsignedDecimal('fuel_used', 19)->nullable();