Skip to content

Commit

Permalink
Update CON-1493-ExpireLegalAgreements.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Howes committed Aug 11, 2020
1 parent e787fd2 commit aed9e32
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ SET StatusId = 4,
WHERE StatusId IN (1, 2) AND TemplateId IN (1, 2)

UPDATE [employer_account].[AccountLegalEntity]
SET SignedAgreementVersion = NULL, SignedAgreementId = NULL, PendingAgreementVersion = NULL, PendingAgreementId = NULL
SET SignedAgreementVersion = NULL, SignedAgreementId = NULL
WHERE SignedAgreementVersion IN (1, 2) AND Deleted IS NULL

UPDATE [employer_account].[AccountLegalEntity]
SET PendingAgreementVersion = NULL, PendingAgreementId = NULL
WHERE PendingAgreementVersion IN (1, 2) AND Deleted IS NULL

-- Replace all pending v3 agreements with pending v4 agreement
UPDATE [employer_account].[EmployerAgreement]
SET TemplateId = 5
Expand Down

0 comments on commit aed9e32

Please sign in to comment.