From 370ea87095bf6859b3d9623ab0f8252e10c1a9ee Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Mon, 15 Jul 2024 11:44:19 +0200 Subject: refactor: rename db column name to reflect content --- .../resources/db/migration/mariadb/V0_4_0__RenamePatientPseudonym.sql | 1 + .../db/migration/postgresql/V0_4_0__RenamePatientPseudonym.sql | 1 + src/main/resources/templates/index.html | 4 ++-- src/main/resources/templates/report.html | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/db/migration/mariadb/V0_4_0__RenamePatientPseudonym.sql create mode 100644 src/main/resources/db/migration/postgresql/V0_4_0__RenamePatientPseudonym.sql (limited to 'src/main/resources') diff --git a/src/main/resources/db/migration/mariadb/V0_4_0__RenamePatientPseudonym.sql b/src/main/resources/db/migration/mariadb/V0_4_0__RenamePatientPseudonym.sql new file mode 100644 index 0000000..bb2b0cc --- /dev/null +++ b/src/main/resources/db/migration/mariadb/V0_4_0__RenamePatientPseudonym.sql @@ -0,0 +1 @@ +ALTER TABLE request RENAME COLUMN patient_id TO patient_pseudonym; \ No newline at end of file diff --git a/src/main/resources/db/migration/postgresql/V0_4_0__RenamePatientPseudonym.sql b/src/main/resources/db/migration/postgresql/V0_4_0__RenamePatientPseudonym.sql new file mode 100644 index 0000000..bb2b0cc --- /dev/null +++ b/src/main/resources/db/migration/postgresql/V0_4_0__RenamePatientPseudonym.sql @@ -0,0 +1 @@ +ALTER TABLE request RENAME COLUMN patient_id TO patient_pseudonym; \ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 520efb6..568ba30 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -62,10 +62,10 @@ - [[ ${request.patientId} ]] + [[ ${request.patientPseudonym} ]] - [[ ${request.patientId} ]] + [[ ${request.patientPseudonym} ]] *** diff --git a/src/main/resources/templates/report.html b/src/main/resources/templates/report.html index 07f987c..21d1b48 100644 --- a/src/main/resources/templates/report.html +++ b/src/main/resources/templates/report.html @@ -31,7 +31,7 @@ [[ ${request.type} ]] [[ ${request.uuid} ]] - [[ ${request.patientId} ]] + [[ ${request.patientPseudonym} ]] *** -- cgit v1.2.3