drop structures

This commit is contained in:
2018-12-06 23:43:47 -06:00
parent 13cfa9286f
commit 9acd13ca73
2 changed files with 6 additions and 6 deletions

View File

@@ -13,9 +13,11 @@ class DropFleetEndColumnFleetsTable extends Migration
*/
public function up()
{
Schema::table('Fleets', function($table) {
$table->dropColumn('fleet_end');
});
if(Schema::hasColumn('Fleets', 'fleet_end')) {
Schema::table('Fleets', function($table) {
$table->dropColumn('fleet_end');
});
}
}
/**

View File

@@ -13,9 +13,7 @@ class DropStructuresTable extends Migration
*/
public function up()
{
Schema::table('Fleets', function($table) {
$table->dropColumn('fleet_end');
});
Schema::dropIfExists('Structures');
}
/**