Remove raw_data field from pireps closes #188

This commit is contained in:
Nabeel Shahzad 2018-02-20 11:17:34 -06:00
parent 5ee8c1e779
commit fdf18cf533
2 changed files with 0 additions and 26 deletions

View File

@ -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');

View File

@ -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