Fix flight_id field type
This commit is contained in:
parent
49b382766a
commit
81667a0184
@ -56,5 +56,6 @@ class CreateFlightsTable extends Migration
|
|||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::drop('flights');
|
Schema::drop('flights');
|
||||||
|
Schema::drop('flight_fields');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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']);
|
||||||
|
Loading…
Reference in New Issue
Block a user