Merge pull request #1772 from burakcakirel/company_id_and_type_index

Add company_id and type index to documents table
This commit is contained in:
Cüneyt Şentürk 2021-01-17 22:11:36 +03:00 committed by GitHub
commit d011b8ea47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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