Change Airport tz field to timezone

This commit is contained in:
Nabeel Shahzad
2018-02-06 10:59:31 -06:00
parent c6b1a475e9
commit 1cc999a4f9
5 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ class CreateAirportsTable extends Migration
$table->string('name', 100);
$table->string('location', 100)->nullable();
$table->string('country', 64)->nullable();
$table->string('tz', 64)->nullable();
$table->string('timezone', 64)->nullable();
$table->boolean('hub')->default(false);
$table->unsignedDecimal('fuel_100ll_cost', 8)->nullable()->default(0);
$table->unsignedDecimal('fuel_jeta_cost', 8)->nullable()->default(0);

View File

@@ -90,8 +90,8 @@ class Airport extends BaseModel
/**
* @return string
*/
public function getTimezoneAttribute(): string
public function getTzAttribute(): string
{
return $this->tz;
return $this->timezone;
}
}