Skip to content

Commit be2a473

Browse files
authored
Merge pull request #48 from openimis/feature/OTC-161
OTC-161: Commission repport error
2 parents f35e5f7 + d2f6fbf commit be2a473

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

114 Bytes
Binary file not shown.

Migration script/openIMIS migration v1.4.2 - 1.5.0.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,3 +1929,19 @@ UPDATE tblPremium SET isOffline=0
19291929

19301930
UPDATE tblPolicy SET isOffline=0
19311931
WHERE (SELECT 1 FROM tblIMISDefaults where OfflineCHF = 1 And OfflineHF = 1) is null;
1932+
1933+
-- OTC-161: Commission repport error
1934+
IF COL_LENGTH('tblPremium', 'OverviewCommissionReport') IS NULL
1935+
BEGIN
1936+
ALTER TABLE tblPremium ADD OverviewCommissionReport datetime NULL
1937+
END
1938+
1939+
IF COL_LENGTH('tblPremium', 'AllDetailsCommissionReport') IS NULL
1940+
BEGIN
1941+
ALTER TABLE tblPremium ADD AllDetailsCommissionReport datetime NULL
1942+
END
1943+
1944+
IF COL_LENGTH('tblPremium', 'ReportingCommisionID') IS NOT NULL
1945+
BEGIN
1946+
ALTER TABLE tblPremium DROP COLUMN ReportingCommisionID
1947+
END

0 commit comments

Comments
 (0)