remove unnecessary database columns in order table

This commit is contained in:
Herbert Maschke 2020-02-28 10:54:00 +01:00
parent 41bc76d72d
commit 6c5e9a73f9
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class FixOrderColumns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('order', function (Blueprint $table) {
$table->removeColumn('customer_company_name');
$table->removeColumn('customer_vat_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}