<?php

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

class AttackIndexing extends Migration
{

    public function up()
    {

        Schema::table('goliath_attack_prefixes', function (Blueprint $table) {
            $table->index('prefix_id');
        });

    }

    public function down()
    {

        Schema::table('goliath_attack_prefixes', function (Blueprint $table) {
            $table->dropIndex('goliath_attack_prefixes_prefix_id_index');
        });

    }
}
