Remove unneeded migratoin

This commit is contained in:
Nabeel Shahzad
2018-05-21 12:00:14 -05:00
parent 0a7f002217
commit 8179611cac
2 changed files with 1 additions and 33 deletions

View File

@@ -18,7 +18,7 @@ class CreateFlightTables extends Migration
$table->unsignedInteger('airline_id');
$table->unsignedInteger('flight_number');
$table->string('route_code', 5)->nullable();
$table->string('route_leg', 5)->nullable();
$table->unsignedInteger('route_leg')->nullable();
$table->string('dpt_airport_id', 4);
$table->string('arr_airport_id', 4);
$table->string('alt_airport_id', 4)->nullable();

View File

@@ -1,32 +0,0 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeRouteLegToUnsignedInteger extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('flights', function (Blueprint $table) {
$table->unsignedInteger('route_leg')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('flights', function (Blueprint $table) {
//
});
}
}