create migration to remove fleet_end from Fleets table

cleaned up register fleet in FleetsController
modified FleetHelper class
This commit is contained in:
2018-12-03 13:52:57 -06:00
parent af7b3a2376
commit 10f9be7746
5 changed files with 39 additions and 66 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class DropFleetEndColumnFleetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('Fleets', function($table) {
$table->dropColumn('fleet_end');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('Fleets', function($table) {
$table->dateTime('fleet_end');
});
}
}