<?php

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

class ChangeRejectedBillsColumnIdLogisticReturn extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('rejected_bills', function (Blueprint $table) {
            $table->bigInteger('id_logistic_return')->index()->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('rejected_bills', function (Blueprint $table) {
            $table->dropIndex('rejected_bills_id_logistic_return_index');
        });
    }
}
