From 5fcdc66eae8cd892f4e2f627d2ea10ca13337a88 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 7 Jul 2017 22:34:12 +0200 Subject: [PATCH 1/2] Changed flight_number column to integer Change flight number to a integer. --- database/migrations/2017_06_17_214650_create_flights_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2017_06_17_214650_create_flights_table.php b/database/migrations/2017_06_17_214650_create_flights_table.php index 59ff10f64..1c8f9e117 100644 --- a/database/migrations/2017_06_17_214650_create_flights_table.php +++ b/database/migrations/2017_06_17_214650_create_flights_table.php @@ -16,7 +16,7 @@ public function up() Schema::create('flights', function (Blueprint $table) { $table->uuid('id'); $table->integer('airline_id')->unsigned(); - $table->text('flight_number'); + $table->integer('flight_number'); $table->text('route_code')->nullable(); $table->text('route_leg')->nullable(); $table->integer('dpt_airport_id')->unsigned(); From 858d3ede030c7a41123561abc03d576b1a5ffa87 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 7 Jul 2017 22:36:51 +0200 Subject: [PATCH 2/2] Update 2017_06_17_214650_create_flights_table.php --- database/migrations/2017_06_17_214650_create_flights_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2017_06_17_214650_create_flights_table.php b/database/migrations/2017_06_17_214650_create_flights_table.php index 1c8f9e117..48db5cea4 100644 --- a/database/migrations/2017_06_17_214650_create_flights_table.php +++ b/database/migrations/2017_06_17_214650_create_flights_table.php @@ -16,7 +16,7 @@ public function up() Schema::create('flights', function (Blueprint $table) { $table->uuid('id'); $table->integer('airline_id')->unsigned(); - $table->integer('flight_number'); + $table->integer('flight_number')->unsigned(); $table->text('route_code')->nullable(); $table->text('route_leg')->nullable(); $table->integer('dpt_airport_id')->unsigned();