Remove unneeded migratoin
This commit is contained in:
@@ -18,7 +18,7 @@ class CreateFlightTables extends Migration
|
|||||||
$table->unsignedInteger('airline_id');
|
$table->unsignedInteger('airline_id');
|
||||||
$table->unsignedInteger('flight_number');
|
$table->unsignedInteger('flight_number');
|
||||||
$table->string('route_code', 5)->nullable();
|
$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('dpt_airport_id', 4);
|
||||||
$table->string('arr_airport_id', 4);
|
$table->string('arr_airport_id', 4);
|
||||||
$table->string('alt_airport_id', 4)->nullable();
|
$table->string('alt_airport_id', 4)->nullable();
|
||||||
|
|||||||
@@ -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) {
|
|
||||||
//
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user