Skip to content

Commit 49e9db5

Browse files
author
Sarathlal Sarangadharan
committed
TD-6148: adf sync time update table has been moved to LH from eLfH
1 parent f9a5817 commit 49e9db5

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

WebAPI/LearningHub.Nhs.Database/LearningHub.Nhs.Database.sqlproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,9 @@
688688
<Build Include="Stored Procedures\Adf\AdfMergeUserRoleUpgrade.sql" />
689689
<Build Include="Stored Procedures\Adf\AdfMergeuserTermsAndConditions.sql" />
690690
<Build Include="Stored Procedures\Hierarchy\RemoveCatalogueCategory.sql" />
691+
<None Include="Scripts\Post-Deploy\Scripts\TD-6148-ADFtableData.sql" />
692+
<Build Include="Tables\Adf\ADFSyncMetadata.sql" />
693+
<Build Include="Stored Procedures\Adf\proc_UpdateLastSyncTimeAdf.sql" />
691694
</ItemGroup>
692695
<ItemGroup>
693696
<None Include="Scripts\Pre-Deploy\Scripts\Card5766_AuthorTableChanges.PreDeployment.sql" />
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
INSERT INTO ADFSyncMetadata (SyncDirection, TableName, LastSyncTime)
2+
VALUES
3+
('ELFHtoLH', 'mergeUserTBL', '1900-01-01'),
4+
('ELFHtoLH', 'userAdminLocationTBL', '1900-01-01'),
5+
('ELFHtoLH', 'userEmploymentReferenceTBL', '1900-01-01'),
6+
('ELFHtoLH', 'userEmploymentResponsibilityTBL', '1900-01-01'),
7+
('ELFHtoLH', 'userHistoryAttributeTBL', '1900-01-01'),
8+
('ELFHtoLH', 'userReportingUserTBL', '1900-01-01'),
9+
('ELFHtoLH', 'emailTemplateTBL', '1900-01-01'),
10+
('ELFHtoLH', 'userprofile', '1900-01-01'),
11+
('ELFHtoLH', 'user', '1900-01-01'),
12+
('ELFHtoLH', 'userRoleUpgradeTBL', '1900-01-01'),
13+
('ELFHtoLH', 'userHistoryTBL', '1900-01-01'),
14+
('ELFHtoLH', 'userHistoryTypeTBL', '1900-01-01'),
15+
('ELFHtoLH', 'userPasswordValidationTokenTBL', '1900-01-01'),
16+
('ELFHtoLH', 'userGroupTypeInputValidationTBL', '1900-01-01'),
17+
('ELFHtoLH', 'userAttributeTBL', '1900-01-01'),
18+
('ELFHtoLH', 'termsAndConditionsTBL', '1900-01-01'),
19+
('ELFHtoLH', 'tenantUrlTBL', '1900-01-01'),
20+
('ELFHtoLH', 'tenantTBL', '1900-01-01'),
21+
('ELFHtoLH', 'tenantSmtpTBL', '1900-01-01'),
22+
('ELFHtoLH', 'systemSettingTBL', '1900-01-01'),
23+
('ELFHtoLH', 'loginWizardStageActivityTBL', '1900-01-01'),
24+
('ELFHtoLH', 'loginWizardRuleTBL', '1900-01-01'),
25+
('ELFHtoLH', 'loginWizardStageTBL', '1900-01-01'),
26+
('ELFHtoLH', 'ipCountryLookupTBL', '1900-01-01'),
27+
('ELFHtoLH', 'emailTemplateTypeTBL', '1900-01-01'),
28+
('ELFHtoLH', 'attributeTBL', '1900-01-01'),
29+
('ELFHtoLH', 'attributeTypeTBL', '1900-01-01'),
30+
('ELFHtoLH', 'gdcRegisterTBL', '1900-01-01'),
31+
('ELFHtoLH', 'gmclrmpTBL', '1900-01-01'),
32+
('ELFHtoLH', 'regionTBL', '1900-01-01'),
33+
('ELFHtoLH', 'userEmploymentTBL', '1900-01-01'),
34+
('ELFHtoLH', 'locationTypeTBL', '1900-01-01'),
35+
('ELFHtoLH', 'locationTBL', '1900-01-01'),
36+
('ELFHtoLH', 'countryTBL', '1900-01-01'),
37+
('ELFHtoLH', 'schoolTBL', '1900-01-01'),
38+
('ELFHtoLH', 'deaneryTBL', '1900-01-01'),
39+
('ELFHtoLH', 'gradeTBL', '1900-01-01'),
40+
('ELFHtoLH', 'specialtyTBL', '1900-01-01'),
41+
('ELFHtoLH', 'JobRoleTbl', '1900-01-01'),
42+
('ELFHtoLH', 'userTermsAndConditionsTBL', '1900-01-01'),
43+
('ELFHtoLH', 'medicalCouncilTBL', '1900-01-01'),
44+
('ELFHtoLH', 'staffGroupTBL', '1900-01-01')
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE TABLE ADFSyncMetadata (
2+
SyncDirection VARCHAR(50), -- e.g., 'ELFHtoLH' or 'LHtoELFH'
3+
TableName VARCHAR(100), -- e.g., 'userTBL_Test', 'departmentTBL'
4+
LastSyncTime DATETIME2,
5+
PRIMARY KEY (SyncDirection, TableName)
6+
);
7+
GO

0 commit comments

Comments
 (0)