HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/meuwis/lmbm.be/database/migrations/2018_05_18_135900_extend_users_to_customers.php
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ExtendUsersToCustomers extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->string('company_name')->after('failed_login_attempts');
            $table->string('chamber_of_commerce')->after('failed_login_attempts');
            $table->string('company_street')->after('failed_login_attempts');
            $table->string('company_house_number')->after('failed_login_attempts');
            $table->string('company_city')->after('failed_login_attempts');
            $table->string('company_postal_code')->after('failed_login_attempts');
            $table->string('company_country')->after('failed_login_attempts');
            $table->string('company_vat_number')->after('failed_login_attempts');
            $table->boolean('company_vat_number_validated')->after('failed_login_attempts');
            $table->string('street')->after('failed_login_attempts');
            $table->integer('house_number')->after('failed_login_attempts');
            $table->string('postal_code')->after('failed_login_attempts');
            $table->string('city')->after('failed_login_attempts');
            $table->string('country')->after('failed_login_attempts');
            $table->string('telephone')->after('failed_login_attempts');
        });
    }


    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn([
                'company_name',
                'chamber_of_commerce',
                'company_street',
                'company_house_number',
                'company_city',
                'company_postal_code',
                'company_country',
                'company_vat_number',
                'company_vat_number_validated',
                'street',
                'house_number',
                'postal_code',
                'city',
                'country',
                'telephone'
            ]);
        });
    }
}