<?php

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

class AddIndexToUserDonations extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('osu_user_donations', function ($table) {
            $table->index('target_user_id');
        });
    }

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

Add correct index to user_donations table
Add correct index to user_donations table
