removed redundant migration

This commit is contained in:
David Große 2020-01-14 10:27:39 +01:00
parent 72c3e289c7
commit d42236974d
1 changed files with 0 additions and 44 deletions

View File

@ -1,44 +0,0 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddCompanyNameAndVatIdToCustomerAddresses extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('customer_addresses', function (Blueprint $table) {
$table->string('company_name')->nullable()->before('address1');
$table->string('vat_id')->nullable()->after('company_name');
// split 'name' column into first_name and last_name
$table->dropColumn('name');
$table->string('first_name')->after('company_name');
$table->string('last_name')->after('first_name');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('customer_addresses', function (Blueprint $table) {
$table->dropColumn('company_name');
$table->dropColumn('vat_id');
$table->dropColumn('first_name');
$table->dropColumn('last_name');
$table->string('name');
});
}
}