mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fixes for document indexing
This commit is contained in:
parent
46aa562723
commit
9b723f11cb
@ -13,13 +13,24 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('documents', function (Blueprint $table) {
|
Schema::table('documents', function (Blueprint $table) {
|
||||||
$table->index(['documentable_id', 'documentable_type','deleted_at']);
|
$table->index(['documentable_id', 'documentable_type','deleted_at']);
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('expenses', function (Blueprint $table) {
|
Schema::table('expenses', function (Blueprint $table) {
|
||||||
$table->index(['invoice_id', 'deleted_at']);
|
$table->index(['invoice_id', 'deleted_at']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Schema::table('company_tokens', function (Blueprint $table) {
|
||||||
|
$table->dropIndex('company_tokens_token_index');
|
||||||
|
$table->index(['token','deleted_at']);
|
||||||
|
});
|
||||||
|
|
||||||
|
Schema::table('invoice_invitations', function (Blueprint $table) {
|
||||||
|
$table->dropIndex('invoice_invitations_key_index');
|
||||||
|
$table->index(['key','deleted_at']);
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user