Fix flight_id field type

This commit is contained in:
Nabeel Shahzad 2017-07-13 10:15:41 -05:00
parent 49b382766a
commit 81667a0184
2 changed files with 2 additions and 1 deletions

View File

@ -56,5 +56,6 @@ class CreateFlightsTable extends Migration
public function down() public function down()
{ {
Schema::drop('flights'); Schema::drop('flights');
Schema::drop('flight_fields');
} }
} }

View File

@ -47,7 +47,7 @@ class CreateSubfleetsTable extends Migration
Schema::create('subfleet_flight', function(Blueprint $table) { Schema::create('subfleet_flight', function(Blueprint $table) {
$table->integer('subfleet_id')->unsigned(); $table->integer('subfleet_id')->unsigned();
$table->integer('flight_id')->unsigned(); $table->uuid('flight_id');
$table->primary(['subfleet_id', 'flight_id']); $table->primary(['subfleet_id', 'flight_id']);
$table->index(['flight_id', 'subfleet_id']); $table->index(['flight_id', 'subfleet_id']);