set/add timezone information for airports and users

This commit is contained in:
Nabeel Shahzad
2017-12-06 16:07:25 -06:00
parent 43e9603fbc
commit f0309e65de
13 changed files with 124 additions and 52 deletions

View File

@@ -26,7 +26,7 @@ class CreateUsersTable extends Migration
$table->bigInteger('flights')->unsigned()->default(0);
$table->bigInteger('flight_time')->unsigned()->default(0);
$table->decimal('balance', 19, 2)->nullable();
$table->tinyInteger('timezone')->default(0);
$table->string('timezone', 64)->nullable();
$table->boolean('active')->nullable();
$table->rememberToken();
$table->timestamps();

View File

@@ -20,6 +20,7 @@ class CreateAirportsTable extends Migration
$table->string('name', 50);
$table->string('location', 50)->nullable();
$table->string('country', 50)->nullable();
$table->string('timezone', 64)->nullable();
$table->double('fuel_100ll_cost', 19, 2)->default(0);
$table->double('fuel_jeta_cost', 19, 2)->default(0);
$table->double('fuel_mogas_cost', 19, 2)->default(0);