From 98786a71e5479cf7e94807aa114962073a529366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C3=87ak=C4=B1rel?= Date: Sun, 17 Jan 2021 21:33:04 +0300 Subject: [PATCH] Add company_id and type index to documents table --- database/migrations/2020_10_13_000000_core_v210.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/migrations/2020_10_13_000000_core_v210.php b/database/migrations/2020_10_13_000000_core_v210.php index 14cb8c729..477cc5c30 100644 --- a/database/migrations/2020_10_13_000000_core_v210.php +++ b/database/migrations/2020_10_13_000000_core_v210.php @@ -43,6 +43,8 @@ class CoreV210 extends Migration $table->timestamps(); $table->softDeletes(); + $table->index('company_id'); + $table->index('type'); $table->unique(['document_number', 'deleted_at', 'company_id', 'type']); });