You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sormas-backend/src/main/java/de/symeda/sormas/backend/adverseeventsfollowingimmunization/entity/AefiInvestigation.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ public class AefiInvestigation extends CoreAdo {
-- rename aefi investigation vaccinations to a shorter name to align with history tables test
14921
+
alter table adverseeventsfollowingimmunizationinvestigation_vaccinations rename to aefiinvestigation_vaccinations;
14922
+
14923
+
-- re-create versioning triggers to support delete for epipulse_export, aefi adverseeventsfollowingimmunization_vaccinations and aefiinvestigation_vaccinations
14924
+
DROP TRIGGER IF EXISTS versioning_trigger ON epipulse_export;
14925
+
CREATE TRIGGER versioning_trigger
14926
+
BEFORE INSERT OR UPDATE OR DELETE ON epipulse_export
14927
+
FOR EACH ROW EXECUTE PROCEDURE versioning('sys_period', 'epipulse_export_history', true);
14928
+
14929
+
DROP TRIGGER IF EXISTS versioning_trigger ON adverseeventsfollowingimmunization_vaccinations;
14930
+
CREATE TRIGGER versioning_trigger
14931
+
BEFORE INSERT OR UPDATE OR DELETE ON adverseeventsfollowingimmunization_vaccinations
14932
+
FOR EACH ROW EXECUTE PROCEDURE versioning('sys_period', 'adverseeventsfollowingimmunization_vaccinations_history', true);
14933
+
14934
+
DROP TRIGGER IF EXISTS versioning_trigger ON aefiinvestigation_vaccinations;
14935
+
CREATE TRIGGER versioning_trigger
14936
+
BEFORE INSERT OR UPDATE OR DELETE ON aefiinvestigation_vaccinations
14937
+
FOR EACH ROW EXECUTE PROCEDURE versioning('sys_period', 'aefiinvestigation_vaccinations_history', true);
14938
+
14939
+
-- epipulse_subjectcode_configuration
14940
+
create table epipulse_subjectcode_configuration
14941
+
(
14942
+
id bigint not null,
14943
+
uuid varchar(36) not null,
14944
+
creationdate timestamp(3) not null,
14945
+
changedate timestamp(3) not null,
14946
+
subjectcode varchar(255) not null,
14947
+
name varchar(255) not null,
14948
+
disease varchar(255),
14949
+
diseasename varchar(255),
14950
+
healthtopic varchar(255),
14951
+
healthtopicname varchar(255),
14952
+
aggregatedreporting boolean not null,
14953
+
validfrom date,
14954
+
validto date,
14955
+
sys_period tstzrange not null,
14956
+
change_user_id bigint
14957
+
);
14958
+
14959
+
alter table epipulse_subjectcode_configuration owner to sormas_user;
14960
+
alter table epipulse_subjectcode_configuration add primary key (id);
14961
+
alter table epipulse_subjectcode_configuration add unique (uuid);
14962
+
alter table epipulse_subjectcode_configuration add unique (subjectcode);
14963
+
alter table epipulse_subjectcode_configuration add unique (name);
0 commit comments