Change field types on flight_fare pivot table to string
This commit is contained in:
parent
0495ff27cb
commit
adf8935d33
@ -45,9 +45,9 @@ class CreateFlightTables extends Migration
|
|||||||
Schema::create('flight_fare', function (Blueprint $table) {
|
Schema::create('flight_fare', function (Blueprint $table) {
|
||||||
$table->string('flight_id', 12);
|
$table->string('flight_id', 12);
|
||||||
$table->unsignedInteger('fare_id');
|
$table->unsignedInteger('fare_id');
|
||||||
$table->unsignedDecimal('price', 19)->nullable();
|
$table->string('price', 10)->nullable();
|
||||||
$table->unsignedDecimal('cost', 19)->nullable();
|
$table->string('cost', 10)->nullable();
|
||||||
$table->unsignedInteger('capacity')->nullable();
|
$table->string('capacity', 10)->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->primary(['flight_id', 'fare_id']);
|
$table->primary(['flight_id', 'fare_id']);
|
||||||
|
Loading…
Reference in New Issue
Block a user