Fix for index

This commit is contained in:
Hillel Coren 2016-12-04 11:50:06 +02:00
parent f739976de2
commit 280bf559b4

View File

@ -21,7 +21,7 @@ class AddSourceCurrencyToExpenses extends Migration
$table->renameColumn('currency_id', 'invoice_currency_id'); $table->renameColumn('currency_id', 'invoice_currency_id');
} }
$table->unsignedInteger('expense_currency_id')->nullable(); $table->unsignedInteger('expense_currency_id')->nullable()->index();
}); });
Schema::table('expenses', function (Blueprint $table) { Schema::table('expenses', function (Blueprint $table) {