mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 02:47:02 +00:00
Change order of indexes
This commit is contained in:
@@ -607,7 +607,7 @@ return new class extends Migration {
|
||||
$t->timestamps(6);
|
||||
$t->softDeletes('deleted_at', 6);
|
||||
|
||||
$t->index(['deleted_at', 'credit_id', 'company_id']);
|
||||
$t->index(['credit_id', 'deleted_at']);
|
||||
$t->unique(['client_contact_id', 'credit_id']);
|
||||
});
|
||||
|
||||
@@ -844,7 +844,7 @@ return new class extends Migration {
|
||||
$t->timestamps(6);
|
||||
$t->softDeletes('deleted_at', 6);
|
||||
|
||||
$t->index(['deleted_at', 'invoice_id', 'company_id']);
|
||||
$t->index(['invoice_id', 'company_id']);
|
||||
$t->unique(['client_contact_id', 'invoice_id']);
|
||||
});
|
||||
|
||||
@@ -873,7 +873,7 @@ return new class extends Migration {
|
||||
$t->timestamps(6);
|
||||
$t->softDeletes('deleted_at', 6);
|
||||
|
||||
$t->index(['deleted_at', 'quote_id', 'company_id']);
|
||||
$t->index(['quote_id', 'deleted_at']);
|
||||
$t->unique(['client_contact_id', 'quote_id']);
|
||||
});
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ return new class extends Migration {
|
||||
$t->timestamps(6);
|
||||
$t->softDeletes('deleted_at', 6);
|
||||
|
||||
$t->index(['deleted_at', 'recurring_invoice_id', 'company_id'], 'rec_co_del');
|
||||
$t->index(['recurring_invoice_id', 'deleted_at'], 'rec_co_del');
|
||||
$t->unique(['client_contact_id', 'recurring_invoice_id'], 'cli_rec');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ return new class extends Migration {
|
||||
$t->timestamps(6);
|
||||
$t->softDeletes('deleted_at', 6);
|
||||
|
||||
$t->index(['deleted_at', 'recurring_quote_id', 'company_id'], 'rec_co_del_q');
|
||||
$t->index(['recurring_quote_id', 'deleted_at'], 'rec_co_del_q');
|
||||
$t->unique(['client_contact_id', 'recurring_quote_id'], 'cli_rec_q');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user