Skip to content

Commit

Permalink
Merge pull request #2221 from SkillsFundingAgency/Modification_to_sql…
Browse files Browse the repository at this point in the history
…_seed_scripts_so_that_contracts_are_accepted

now adds the signed agreement ids to the table in the seed data to re…
  • Loading branch information
sscaife authored Nov 18, 2021
2 parents 3bebd78 + 76e9755 commit ce1af28
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,15 @@ EXECUTE #CreateAccount 1, 'JRML7V', 'LDMVWV', @userId, '00445790', 'Tesco Plc',
EXECUTE #CreateAccount 2, '84VBNV', 'BDXBDV', @userId, 'SC171417', 'SAINSBURY''S LIMITED', 'No 2 Lochrin Square, 96 Fountainbridge, Edinburgh, EH3 9QA', '1997-01-16 00:00:00.000', 'active', 1, '123/SFZZ029', 'NA', 'AAA124'
EXECUTE #CreateAccount 3, 'JLVKPM', 'XWBVWN', @userId, '07297044', 'DINE CONTRACT CATERING LIMITED', '1st Floor The Centre, Birchwood Park, Warrington, Lancashire, WA3 6YN', '2010-06-28 00:00:00.000', 'active', 1, '101/ZZR00016', 'NA', 'AAA125'

DROP PROCEDURE #CreateAccount
UPDATE [employer_account].[EmployerAgreement] SET TemplateId = 7

UPDATE [employer_account].[AccountLegalEntity]
SET
SignedAgreementVersion = 6,
SignedAgreementId = EA.Id
FROM [SFA.DAS.EAS.Employer_Account.Database].[employer_account].[AccountLegalEntity] ALE
JOIN
[employer_account].[EmployerAgreement] EA ON EA.AccountLegalEntityId = ALE.Id

DROP PROCEDURE #CreateAccount

0 comments on commit ce1af28

Please sign in to comment.