Cache the api calls to vacentral and make the iata field optional

This commit is contained in:
Nabeel Shahzad
2017-12-07 17:44:05 -06:00
parent ddb8a6f5e9
commit fa4be69774
5 changed files with 16 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ class CreateAirportsTable extends Migration
Schema::create('airports', function (Blueprint $table) {
// $table->bigIncrements('id');
$table->string('id', 5)->primary();
$table->string('iata', 5);
$table->string('iata', 5)->nullable();
$table->string('icao', 5);
$table->string('name', 100);
$table->string('location', 100)->nullable();