From c877359190617cebc3aca5ae9507ae3e554e96d1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 25 Mar 2018 13:29:30 +0300 Subject: [PATCH] Add index to activities table --- .../migrations/2018_03_08_150414_add_slack_notifications.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/migrations/2018_03_08_150414_add_slack_notifications.php b/database/migrations/2018_03_08_150414_add_slack_notifications.php index 6f75d11b63ab..f947665b25aa 100644 --- a/database/migrations/2018_03_08_150414_add_slack_notifications.php +++ b/database/migrations/2018_03_08_150414_add_slack_notifications.php @@ -22,6 +22,7 @@ class AddSlackNotifications extends Migration Schema::table('activities', function ($table) { $table->foreign('client_id')->references('id')->on('clients')->onDelete('cascade'); + $table->index('payment_id'); }); Schema::table('users', function ($table) { @@ -104,6 +105,6 @@ class AddSlackNotifications extends Migration Schema::table('failed_jobs', function (Blueprint $table) { $table->dropColumn('exception'); - }); + }); } }