AddSignupAdminIpAddressToUsersTable::up PHP Method

up() public method

Run the migrations.
public up ( ) : void
return void
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
            if (!Schema::hasColumn('users', 'admin_ip_address')) {
                $table->string('admin_ip_address')->after('signup_sm_ip_address');
            }
        });
    }
AddSignupAdminIpAddressToUsersTable