From 280bf559b4f8bad92a17174eec51f02b8a29f6ce Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 4 Dec 2016 11:50:06 +0200 Subject: [PATCH] Fix for index --- .../2016_02_01_135956_add_source_currency_to_expenses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2016_02_01_135956_add_source_currency_to_expenses.php b/database/migrations/2016_02_01_135956_add_source_currency_to_expenses.php index c39a722af0..f40ed0fea4 100644 --- a/database/migrations/2016_02_01_135956_add_source_currency_to_expenses.php +++ b/database/migrations/2016_02_01_135956_add_source_currency_to_expenses.php @@ -21,7 +21,7 @@ class AddSourceCurrencyToExpenses extends Migration $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) {