drop structures
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,9 +13,7 @@ class DropStructuresTable extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('Fleets', function($table) {
|
||||
$table->dropColumn('fleet_end');
|
||||
});
|
||||
Schema::dropIfExists('Structures');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user