Fix distance field types
This commit is contained in:
@@ -28,9 +28,9 @@ class CreatePirepTables extends Migration
|
|||||||
$table->string('route_leg', 5)->nullable();
|
$table->string('route_leg', 5)->nullable();
|
||||||
$table->string('dpt_airport_id', 5);
|
$table->string('dpt_airport_id', 5);
|
||||||
$table->string('arr_airport_id', 5);
|
$table->string('arr_airport_id', 5);
|
||||||
$table->unsignedInteger('distance')->nullable();
|
|
||||||
$table->unsignedInteger('planned_distance')->nullable();
|
|
||||||
$table->unsignedInteger('level')->nullable();
|
$table->unsignedInteger('level')->nullable();
|
||||||
|
$table->unsignedDecimal('distance')->nullable();
|
||||||
|
$table->unsignedDecimal('planned_distance')->nullable();
|
||||||
$table->unsignedDecimal('flight_time', 19)->nullable();
|
$table->unsignedDecimal('flight_time', 19)->nullable();
|
||||||
$table->unsignedDecimal('planned_flight_time', 19)->nullable();
|
$table->unsignedDecimal('planned_flight_time', 19)->nullable();
|
||||||
$table->unsignedDecimal('zfw', 19)->nullable();
|
$table->unsignedDecimal('zfw', 19)->nullable();
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ class Pirep extends BaseModel
|
|||||||
'planned_flight_time' => 'integer',
|
'planned_flight_time' => 'integer',
|
||||||
'level' => 'integer',
|
'level' => 'integer',
|
||||||
'altitude' => 'integer',
|
'altitude' => 'integer',
|
||||||
'block_fuel' => 'float',
|
'zfw' => 'float',
|
||||||
|
'block_fuel' => 'float',
|
||||||
'gross_weight' => 'float',
|
'gross_weight' => 'float',
|
||||||
'landing_rate' => 'float',
|
'landing_rate' => 'float',
|
||||||
'flight_type' => 'integer',
|
'flight_type' => 'integer',
|
||||||
@@ -106,7 +107,7 @@ class Pirep extends BaseModel
|
|||||||
*/
|
*/
|
||||||
public function allowedUpdates()
|
public function allowedUpdates()
|
||||||
{
|
{
|
||||||
if ($this->state === PirepState::CANCELLED) {
|
if($this->state === PirepState::CANCELLED) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user