Remove raw_data field from pireps closes #188
This commit is contained in:
parent
5ee8c1e779
commit
fdf18cf533
@ -44,7 +44,6 @@ class CreatePirepTables extends Migration
|
||||
$table->tinyInteger('flight_type')->default(FlightType::PASSENGER);
|
||||
$table->tinyInteger('state')->default(PirepState::PENDING);
|
||||
$table->tinyInteger('status')->default(PirepStatus::SCHEDULED);
|
||||
$table->longText('raw_data')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->primary('id');
|
||||
|
@ -50,7 +50,6 @@ class Pirep extends BaseModel
|
||||
'flight_type',
|
||||
'state',
|
||||
'status',
|
||||
'raw_data',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
@ -138,30 +137,6 @@ class Pirep extends BaseModel
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Time
|
||||
*/
|
||||
/*public function getFlightTimeAttribute()
|
||||
{
|
||||
if (!array_key_exists('flight_time', $this->attributes)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new Time($this->attributes['flight_time']);
|
||||
}*/
|
||||
|
||||
/**
|
||||
* @param $value
|
||||
*/
|
||||
/*public function setFlightTimeAttribute($value)
|
||||
{
|
||||
if($value instanceof Time) {
|
||||
$this->attributes['flight_time'] = $value->getMinutes();
|
||||
} else {
|
||||
$this->attributes['flight_time'] = $value;
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Return the planned_distance in a converter class
|
||||
* @return int|Distance
|
||||
|
Loading…
Reference in New Issue
Block a user