From 1d28b4a74f7b1366b9ca66d8a922c02fdc90630b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 1 Jan 2018 23:09:38 +0200 Subject: [PATCH] Add activities index --- .../2017_11_15_114422_add_subdomain_to_lookups.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/database/migrations/2017_11_15_114422_add_subdomain_to_lookups.php b/database/migrations/2017_11_15_114422_add_subdomain_to_lookups.php index 3398938e68..6c04591a6f 100644 --- a/database/migrations/2017_11_15_114422_add_subdomain_to_lookups.php +++ b/database/migrations/2017_11_15_114422_add_subdomain_to_lookups.php @@ -95,6 +95,12 @@ class AddSubdomainToLookups extends Migration Schema::table('accounts', function ($table) { $table->boolean('inclusive_taxes')->default(0); }); + + if (Utils::isNinja()) { + Schema::table('activities', function ($table) { + $table->index('user_id'); + }); + } } /**