Expand flight types to match IATA SSIM

This commit is contained in:
Nabeel Shahzad
2018-03-29 11:34:36 -05:00
parent ec553f06c8
commit b31384f429
7 changed files with 53 additions and 14093 deletions

View File

@@ -28,7 +28,7 @@ class CreateFlightTables extends Migration
$table->unsignedInteger('level')->nullable()->default(0);
$table->unsignedDecimal('distance')->nullable()->default(0.0);
$table->unsignedInteger('flight_time')->nullable();
$table->tinyInteger('flight_type')->default(FlightType::PASSENGER);
$table->char('flight_type', 1)->default(FlightType::SCHED_PAX);
$table->text('route')->nullable();
$table->text('notes')->nullable();
$table->boolean('has_bid')->default(false);

View File

@@ -38,7 +38,7 @@ class CreatePirepTables extends Migration
$table->text('notes')->nullable();
$table->unsignedTinyInteger('source')->nullable()->default(0);
$table->string('source_name', 25)->nullable();
$table->tinyInteger('flight_type')->default(FlightType::PASSENGER);
$table->tinyInteger('flight_type')->default(FlightType::SCHED_PAX);
$table->tinyInteger('state')->default(PirepState::PENDING);
$table->tinyInteger('status')->default(PirepStatus::SCHEDULED);
$table->timestamps();