Add some indexes and tests for airports

This commit is contained in:
Nabeel Shahzad
2018-05-06 10:21:43 -05:00
parent f671d3f624
commit feeb4946d1
3 changed files with 15 additions and 2 deletions

View File

@@ -22,6 +22,10 @@ class CreateAirportsTable extends Migration
$table->unsignedDecimal('fuel_mogas_cost')->nullable()->default(0);
$table->float('lat', 7, 4)->nullable()->default(0.0);
$table->float('lon', 7, 4)->nullable()->default(0.0);
$table->index('icao');
$table->index('iata');
$table->index('hub');
});
}