Change order of indexes
This commit is contained in:
parent
1c28a7ba37
commit
cf1e5695a2
|
|
@ -19,12 +19,13 @@ class PaymentWebhookController extends Controller
|
|||
public function __invoke(PaymentWebhookRequest $request)
|
||||
{
|
||||
//return early if we cannot resolve the company gateway
|
||||
if (!$request->getCompanyGateway()) {
|
||||
$company_gateway = $request->getCompanyGateway();
|
||||
|
||||
if (!$company_gateway) {
|
||||
return response()->json([], 200);
|
||||
}
|
||||
|
||||
return $request
|
||||
->getCompanyGateway()
|
||||
return $company_gateway
|
||||
->driver()
|
||||
->processWebhookRequest($request);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue