Skip to content

Commit 4d7551f

Browse files
committed
Add user indexes
1 parent 7027a92 commit 4d7551f

5 files changed

Lines changed: 4 additions & 0 deletions

File tree

540 Bytes
Binary file not shown.
540 Bytes
Binary file not shown.
544 Bytes
Binary file not shown.
540 Bytes
Binary file not shown.

Migration script/openIMIS migration v1.4.0 - v1.4.1.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,10 @@ BEGIN TRY
14561456
ALTER TABLE tblHF ADD CONSTRAINT FK_tblHF_tblLocations FOREIGN KEY(LocationId) REFERENCES [tblLocations] (LocationId)
14571457
ALTER TABLE tblBatchRun ADD CONSTRAINT FK_tblBatchRun_tblLocations FOREIGN KEY(LocationID) REFERENCES [tblLocations] (LocationID)
14581458
ALTER TABLE tblFamilies ADD CONSTRAINT FK_tblFamilies_tblLocations FOREIGN KEY(LocationID) REFERENCES [tblLocations] (LocationID)
1459+
1460+
CREATE NONCLUSTERED INDEX NCI_tblUserDistrict_UserID ON tblUsersDistricts (ValidityTo,UserID)
1461+
CREATE NONCLUSTERED INDEX NCI_tblUsers_UserUUID ON tblUsers (ValidityTo,UserUUID)
1462+
CREATE NONCLUSTERED INDEX NCI_tblUserRoles_UserID ON tblUserRoles (ValidityTo,UserID)
14591463

14601464
COMMIT TRANSACTION;
14611465
END TRY

0 commit comments

Comments
 (0)