<?php

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

class UpdateSuggestedCapsules extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('table_capsule', function (Blueprint $table) {
            $table->dateTime('set_suggested')->nullable();

            $table->index('set_suggested');
        });
    }

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