drop corp structures tax column

This commit is contained in:
2019-02-13 21:43:59 -06:00
parent dc50b8e6d7
commit 2894190a74
3 changed files with 38 additions and 12 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class DropCorpStructuresTaxColumnTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(Schema::hasColumn('CorpStructures', 'tax')) {
Schema::table('CorpStructures', function($table) {
$table->dropColumn('tax');
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}