Skip to content

Commit 1906a87

Browse files
Merge pull request #13333 from SORMAS-Foundation/13319-enhance-case-data-form-for-tb-specific-data
Altered the history tables
2 parents fa9b28a + b781381 commit 1906a87

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sormas-backend/src/main/resources/sql/sormas_schema.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13972,12 +13972,24 @@ INSERT INTO schema_version (version_number, comment) VALUES (565, 'Entities to S
1397213972

1397313973
ALTER TABLE cases ADD COLUMN IF NOT EXISTS postMortem BOOLEAN DEFAULT false;
1397413974
ALTER TABLE cases ADD COLUMN IF NOT EXISTS healthFacilityDepartment VARCHAR(255);
13975+
13976+
ALTER TABLE cases_history ADD COLUMN IF NOT EXISTS postMortem BOOLEAN DEFAULT false;
13977+
ALTER TABLE cases_history ADD COLUMN IF NOT EXISTS healthFacilityDepartment VARCHAR(255);
13978+
1397513979
ALTER TABLE healthconditions ADD COLUMN IF NOT EXISTS previousTuberculosisTreatment VARCHAR(255);
1397613980
ALTER TABLE healthconditions ADD COLUMN IF NOT EXISTS tuberculosisInfectionYear int8 default 0;
1397713981
ALTER TABLE healthconditions ADD COLUMN IF NOT EXISTS complianceWithTreatment VARCHAR(255);
13982+
13983+
ALTER TABLE healthconditions_history ADD COLUMN IF NOT EXISTS previousTuberculosisTreatment VARCHAR(255);
13984+
ALTER TABLE healthconditions_history ADD COLUMN IF NOT EXISTS tuberculosisInfectionYear int8 default 0;
13985+
ALTER TABLE healthconditions_history ADD COLUMN IF NOT EXISTS complianceWithTreatment VARCHAR(255);
13986+
1397813987
ALTER TABLE person ADD COLUMN IF NOT EXISTS entrydate date;
1397913988
ALTER TABLE person ADD COLUMN IF NOT EXISTS livingStatus varchar(255);
1398013989

13990+
ALTER TABLE person_history ADD COLUMN IF NOT EXISTS entrydate date;
13991+
ALTER TABLE person_history ADD COLUMN IF NOT EXISTS livingStatus varchar(255);
13992+
1398113993
INSERT INTO schema_version (version_number, comment) VALUES (566, 'Entries to the LUX+TB specific #13319');
1398213994

1398313995
-- *** Insert new sql commands BEFORE this line. Remember to always consider _history tables. ***

0 commit comments

Comments
 (0)