diff --git a/src/SFA.DAS.Commitments.Database/Tables/Commitment.sql b/src/SFA.DAS.Commitments.Database/Tables/Commitment.sql index 4b6ff6c1e8..7818a34147 100644 --- a/src/SFA.DAS.Commitments.Database/Tables/Commitment.sql +++ b/src/SFA.DAS.Commitments.Database/Tables/Commitment.sql @@ -30,7 +30,7 @@ GO -- this was recommented by azure and has been added directly to prod CREATE NONCLUSTERED INDEX [IX_Commitment_ProviderId_CommitmentStatus] ON [dbo].[Commitment] ([ProviderId], [CommitmentStatus]) -INCLUDE ([CreatedOn], [EditStatus], [EmployerAccountId], [LastAction], [LastUpdatedByEmployerEmail], [LastUpdatedByEmployerName], [LastUpdatedByProviderEmail], [LastUpdatedByProviderName], [LegalEntityAddress], [LegalEntityId], [LegalEntityName], [LegalEntityOrganisationType], [ProviderName], [Reference], [TransferApprovalActionedByEmployerEmail], [TransferApprovalActionedByEmployerName], [TransferApprovalActionedOn], [TransferApprovalStatus], [TransferSenderId], [TransferSenderName]) WITH (ONLINE = ON) +INCLUDE ([AccountLegalEntityPublicHashedId], [CreatedOn], [EditStatus], [EmployerAccountId], [LastAction], [LastUpdatedByEmployerEmail], [LastUpdatedByEmployerName], [LastUpdatedByProviderEmail], [LastUpdatedByProviderName], [LegalEntityAddress], [LegalEntityId], [LegalEntityName], [LegalEntityOrganisationType], [ProviderName], [Reference], [TransferApprovalActionedByEmployerEmail], [TransferApprovalActionedByEmployerName], [TransferApprovalActionedOn], [TransferApprovalStatus], [TransferSenderId], [TransferSenderName]) WITH (ONLINE = ON) GO -- but we have 2 natural id's, providerid and EmployerAccountId