From adf8935d331ded7d76fb656efec810d4e31b306e Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sun, 7 Jan 2018 11:05:34 -0600 Subject: [PATCH] Change field types on flight_fare pivot table to string --- .../migrations/2017_06_17_214650_create_flight_tables.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Database/migrations/2017_06_17_214650_create_flight_tables.php b/app/Database/migrations/2017_06_17_214650_create_flight_tables.php index 6d4c59fb..ee7445ab 100644 --- a/app/Database/migrations/2017_06_17_214650_create_flight_tables.php +++ b/app/Database/migrations/2017_06_17_214650_create_flight_tables.php @@ -45,9 +45,9 @@ class CreateFlightTables extends Migration Schema::create('flight_fare', function (Blueprint $table) { $table->string('flight_id', 12); $table->unsignedInteger('fare_id'); - $table->unsignedDecimal('price', 19)->nullable(); - $table->unsignedDecimal('cost', 19)->nullable(); - $table->unsignedInteger('capacity')->nullable(); + $table->string('price', 10)->nullable(); + $table->string('cost', 10)->nullable(); + $table->string('capacity', 10)->nullable(); $table->timestamps(); $table->primary(['flight_id', 'fare_id']);