<?php

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

class ChangeLaborReportStatusesAddIndexCreatedAt extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('labor_report_statuses',function (Blueprint $table){
            $table->index('created_at','labor_report_statuses_created_at_index');
        });
    }

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