Skip to content

Commit

Permalink
[GITFLOW]merging 'hotfix-1.66.3' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
MateStrysewske committed Dec 10, 2021
2 parents 9eda455 + 7a85133 commit d902cfa
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion sormas-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
20 changes: 10 additions & 10 deletions sormas-backend/src/main/resources/sql/sormas_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7922,6 +7922,8 @@ INSERT INTO schema_version (version_number, comment) VALUES (405, 'Vaccination d
/* Vaccination refactoring */
/* Step 1: Create a temporary table containing the latest vaccination information for each disease of each person */
DROP TABLE IF EXISTS tmp_vaccinated_entities;
DROP TABLE IF EXISTS tmp_healthconditions;
CREATE TEMP TABLE tmp_healthconditions (LIKE healthconditions);
CREATE TEMP TABLE tmp_vaccinated_entities AS
(
SELECT DISTINCT ON (person.id, cases.disease)
Expand Down Expand Up @@ -8471,11 +8473,9 @@ CREATE OR REPLACE FUNCTION clone_healthconditions(healthconditions_id bigint)
$BODY$
DECLARE new_id bigint;
BEGIN
DROP TABLE IF EXISTS tmp_healthconditions;
CREATE TEMP TABLE tmp_healthconditions AS SELECT * FROM healthconditions WHERE id = healthconditions_id;
UPDATE tmp_healthconditions SET id = nextval('entity_seq'), uuid = generate_base32_uuid(), changedate = now(), creationdate = now(), sys_period = tstzrange(now(), null);
INSERT INTO healthconditions SELECT * FROM tmp_healthconditions RETURNING id INTO new_id;
DROP TABLE IF EXISTS tmp_healthconditions;
INSERT INTO tmp_healthconditions SELECT * FROM healthconditions WHERE id = healthconditions_id;
UPDATE tmp_healthconditions SET id = nextval('entity_seq'), uuid = generate_base32_uuid(), changedate = now(), creationdate = now(), sys_period = tstzrange(now(), null) WHERE id = healthconditions_id RETURNING id INTO new_id;
INSERT INTO healthconditions SELECT * FROM tmp_healthconditions WHERE id = new_id;
RETURN new_id;
END;
$BODY$;
Expand Down Expand Up @@ -8627,8 +8627,8 @@ DO $$
rec.reportdate, rec.reportinguser_id, coalesce(rec.lastvaccinationdate, rec.firstvaccinationdate),
CASE
WHEN
rec.vaccinename = 'ASTRA_ZENECA_COMIRNATY' OR
rec.vaccinename = 'ASTRA_ZENECA_MRNA_1273'
rec.vaccinename = 'ASTRA_ZENECA_COMIRNATY' OR
rec.vaccinename = 'ASTRA_ZENECA_MRNA_1273'
THEN
'OXFORD_ASTRA_ZENECA'
ELSE
Expand All @@ -8637,8 +8637,8 @@ DO $$
rec.othervaccinename,
CASE
WHEN
rec.vaccinename = 'ASTRA_ZENECA_COMIRNATY' OR
rec.vaccinename = 'ASTRA_ZENECA_MRNA_1273'
rec.vaccinename = 'ASTRA_ZENECA_COMIRNATY' OR
rec.vaccinename = 'ASTRA_ZENECA_MRNA_1273'
THEN
'ASTRA_ZENECA'
ELSE
Expand Down Expand Up @@ -8770,7 +8770,7 @@ DROP TABLE IF EXISTS tmp_latest_vaccinebatchnumber;
DROP TABLE IF EXISTS tmp_latest_vaccineuniicode;
DROP TABLE IF EXISTS tmp_latest_vaccineatccode;
DROP TABLE IF EXISTS tmp_latest_vaccinationinfosource;

DROP TABLE IF EXISTS tmp_healthconditions;

DROP FUNCTION IF EXISTS clone_healthconditions(bigint);
DROP FUNCTION IF EXISTS create_healthconditions();
Expand Down
2 changes: 1 addition & 1 deletion sormas-base/dependencies/serverlibs.pom
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<packaging>pom</packaging>
<version>1.66.2</version>
<version>1.66.3</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion sormas-cargoserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../sormas-base</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-ear/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../sormas-base</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../sormas-base</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-widgetset/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.66.2</version>
<version>1.66.3</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit d902cfa

Please sign in to comment.