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']); });