<?php

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

class RenameCreatedByToCustomerIdInAdminsettingsTable extends Migration
{
    public function up()
    {
        Schema::table('adminsettings', function (Blueprint $table) {
            $table->renameColumn('created_by', 'customer_id');
        });
    }

    public function down()
    {
        Schema::table('adminsettings', function (Blueprint $table) {
            $table->renameColumn('customer_id', 'created_by');
        });
    }
}

