diff --git a/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php b/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php index 90bdc503..f293de0d 100644 --- a/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php +++ b/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php @@ -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'); diff --git a/app/Models/Pirep.php b/app/Models/Pirep.php index 19a04b3e..3f04165a 100644 --- a/app/Models/Pirep.php +++ b/app/Models/Pirep.php @@ -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