From 4e8718e100d9f27c22ba7b1a6c805f53655607fa Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Tue, 19 Nov 2024 14:31:08 +0100 Subject: [PATCH 01/12] update file step_a104_add_inventory_in_pharmacy.sql --- sql/step_a104_add_inventory_in_pharmacy.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/step_a104_add_inventory_in_pharmacy.sql b/sql/step_a104_add_inventory_in_pharmacy.sql index cea74a4b7..880c2d6b4 100644 --- a/sql/step_a104_add_inventory_in_pharmacy.sql +++ b/sql/step_a104_add_inventory_in_pharmacy.sql @@ -5,7 +5,7 @@ CREATE TABLE OH_MEDICALDSRINVENTORY ( MINVT_US_ID_A varchar (50) NOT NULL, MINVT_REFERENCE varchar (50) NOT NULL, MINVT_TYPE varchar(30) NOT NULL, - MINVT_WRD_ID_A varchar(1) NULL, + MINVT_WRD_ID_A char(3) NULL, MINVT_CHARGE_TYPE varchar(10) NULL, MINVT_DISCHARGE_TYPE varchar(10) NULL, MINVT_SUPPLIER int NULL, From 880fd516c0dcc78e8d21ee2768c0ab2f34776ace Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Tue, 3 Dec 2024 12:46:19 +0100 Subject: [PATCH 02/12] add script for missing fk on column created_by and last_modified_by --- sql/step_04_all_following_steps.sql | 1 + ...ing_foreign_key_for_auditable_entities.sql | 61 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql diff --git a/sql/step_04_all_following_steps.sql b/sql/step_04_all_following_steps.sql index 14676f2cf..b6a92ab9c 100644 --- a/sql/step_04_all_following_steps.sql +++ b/sql/step_04_all_following_steps.sql @@ -108,3 +108,4 @@ source step_a111_add_missing_lock_columns.sql; source step_a112_users_and_groups_soft_deletion.sql; source step_a113_alter_table_medicalinventory.sql; source step_a114_medical_type_soft_deletion.sql; +source step_a115_add_missing_foreign_key_for_auditable_entities.sql \ No newline at end of file diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql new file mode 100644 index 000000000..dc8724bb1 --- /dev/null +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -0,0 +1,61 @@ +--- MEDICALDSRINVENTORY -- +ALTER TABLE OH_MEDICALDSRINVENTORY +DROP CONSTRAINT FK_MEDICALDSRINVENTORY_USER; + +ALTER TABLE OH_MEDICALDSRINVENTORY +ADD CONSTRAINT FK_MEDICALDSRINVENTORY_USER_1 +FOREIGN KEY (MINVT_US_ID_A) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_MEDICALDSRINVENTORY +ADD CONSTRAINT FK_MEDICALDSRINVENTORY_USER_2 +FOREIGN KEY (MINVT_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_MEDICALDSRINVENTORY +ADD CONSTRAINT FK_MEDICALDSRINVENTORY_USER_3 +FOREIGN KEY (MINVT_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- OH_MEDICALDSRINVENTORYROW -- + +ALTER TABLE OH_MEDICALDSRINVENTORYROW +ADD CONSTRAINT FK_MEDICALDSRINVENTORYROW_USER_1 +FOREIGN KEY (MINVTR_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_MEDICALDSRINVENTORYROW +ADD CONSTRAINT FK_MEDICALDSRINVENTORYROW_USER_2 +FOREIGN KEY (MINVTR_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- OH_MEDICALDSRSTOCK -- +ALTER TABLE OH_MEDICALDSRSTOCK +MODIFY COLUMN MS_CREATED_BY VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci; + +ALTER TABLE OH_MEDICALDSRSTOCK +MODIFY COLUMN MS_LAST_MODIFIED_BY VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci; + +ALTER TABLE OH_MEDICALDSRSTOCK +ADD CONSTRAINT FK_MEDICALDSRSTOCK_USER_1 +FOREIGN KEY (MS_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_MEDICALDSRSTOCK +ADD CONSTRAINT FK_MEDICALDSRSTOCK_USER_2 +FOREIGN KEY (MS_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + + +-- OH_USER_SETTINGS -- + +ALTER TABLE OH_USER_SETTINGS +ADD CONSTRAINT FK_USER_SETTINGS_USER_1 +FOREIGN KEY (USS_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_USER_SETTINGS +ADD CONSTRAINT FK_USER_SETTINGS_USER_2 +FOREIGN KEY (USS_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- OH_PATIENT_CONSENSUS -- + +ALTER TABLE OH_PATIENT_CONSENSUS +ADD CONSTRAINT FK_PATIENT_CONSENSUS_USER_1 +FOREIGN KEY (PTC_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_PATIENT_CONSENSUS +ADD CONSTRAINT FK_PATIENT_CONSENSUS_USER_2 +FOREIGN KEY (PTC_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; \ No newline at end of file From 394267423425b6fba9676928d7fc1e697736297d Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Tue, 3 Dec 2024 12:49:10 +0100 Subject: [PATCH 03/12] revert sql/step_a104_add_inventory_in_pharmacy.sql --- sql/step_a104_add_inventory_in_pharmacy.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/step_a104_add_inventory_in_pharmacy.sql b/sql/step_a104_add_inventory_in_pharmacy.sql index 880c2d6b4..cea74a4b7 100644 --- a/sql/step_a104_add_inventory_in_pharmacy.sql +++ b/sql/step_a104_add_inventory_in_pharmacy.sql @@ -5,7 +5,7 @@ CREATE TABLE OH_MEDICALDSRINVENTORY ( MINVT_US_ID_A varchar (50) NOT NULL, MINVT_REFERENCE varchar (50) NOT NULL, MINVT_TYPE varchar(30) NOT NULL, - MINVT_WRD_ID_A char(3) NULL, + MINVT_WRD_ID_A varchar(1) NULL, MINVT_CHARGE_TYPE varchar(10) NULL, MINVT_DISCHARGE_TYPE varchar(10) NULL, MINVT_SUPPLIER int NULL, From c6fba4bae8e5b5f8f9a1044c8816d07011adbf85 Mon Sep 17 00:00:00 2001 From: FOFOU FONZAM Gui Arnaud Date: Mon, 9 Dec 2024 08:19:13 +0100 Subject: [PATCH 04/12] Update sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql Co-authored-by: Alessandro Domanico --- sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql index dc8724bb1..f592b3bbb 100644 --- a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -1,4 +1,5 @@ --- MEDICALDSRINVENTORY -- + ALTER TABLE OH_MEDICALDSRINVENTORY DROP CONSTRAINT FK_MEDICALDSRINVENTORY_USER; From be707f5a12a62eb13f043da9030f5fe6bb0aec96 Mon Sep 17 00:00:00 2001 From: FOFOU FONZAM Gui Arnaud Date: Mon, 9 Dec 2024 08:19:23 +0100 Subject: [PATCH 05/12] Update sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql Co-authored-by: Alessandro Domanico --- sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql index f592b3bbb..a28086870 100644 --- a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -26,6 +26,7 @@ ADD CONSTRAINT FK_MEDICALDSRINVENTORYROW_USER_2 FOREIGN KEY (MINVTR_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; -- OH_MEDICALDSRSTOCK -- + ALTER TABLE OH_MEDICALDSRSTOCK MODIFY COLUMN MS_CREATED_BY VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci; From 8032579a4d1dd586eb56ea3787675e1bbbc5c434 Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Mon, 9 Dec 2024 17:58:06 +0100 Subject: [PATCH 06/12] update sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql' --- ...ing_foreign_key_for_auditable_entities.sql | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql index a28086870..ddee3e303 100644 --- a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -25,6 +25,27 @@ ALTER TABLE OH_MEDICALDSRINVENTORYROW ADD CONSTRAINT FK_MEDICALDSRINVENTORYROW_USER_2 FOREIGN KEY (MINVTR_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; +ALTER TABLE OH_MEDICALDSRINVENTORYROW +DROP CONSTRAINT oh_medicaldsrinventoryrow_ibfk_1; + +ALTER TABLE OH_MEDICALDSRINVENTORYROW +ADD CONSTRAINT FK_MEDICALDSRINVENTORYROW_MEDICALDSRINVENTORY +FOREIGN KEY (MINVTR_INVT_ID) REFERENCES OH_MEDICALDSRINVENTORY (MINVT_ID) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_MEDICALDSRINVENTORYROW +DROP CONSTRAINT oh_medicaldsrinventoryrow_ibfk_2; + +ALTER TABLE OH_MEDICALDSRINVENTORYROW +ADD CONSTRAINT FK_MEDICALDSRINVENTORYROW_MEDICALDSR +FOREIGN KEY (MINVTR_MDSR_ID) REFERENCES OH_MEDICALDSR (MDSR_ID) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_MEDICALDSRINVENTORYROW +DROP CONSTRAINT oh_medicaldsrinventoryrow_ibfk_3; + +ALTER TABLE OH_MEDICALDSRINVENTORYROW +ADD CONSTRAINT FK_MEDICALDSRINVENTORYROW_MEDICALDSRLOT +FOREIGN KEY (MINVTR_LT_ID_A) REFERENCES OH_MEDICALDSRLOT (LT_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + -- OH_MEDICALDSRSTOCK -- ALTER TABLE OH_MEDICALDSRSTOCK @@ -60,4 +81,15 @@ FOREIGN KEY (PTC_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON ALTER TABLE OH_PATIENT_CONSENSUS ADD CONSTRAINT FK_PATIENT_CONSENSUS_USER_2 -FOREIGN KEY (PTC_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; \ No newline at end of file +FOREIGN KEY (PTC_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_PATIENT_CONSENSUS +DROP CONSTRAINT oh_patient_consensus_ibfk_1; + +SET FOREIGN_KEY_CHECKS = 0; + +ALTER TABLE OH_PATIENT_CONSENSUS +ADD CONSTRAINT FK_PATIENT_CONSENSUS_PATIENT +FOREIGN KEY (PTC_PAT_ID) REFERENCES OH_PATIENT (PAT_ID) ON DELETE NO ACTION ON UPDATE NO ACTION; + +SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file From 8b7bfa63269ecf6d7c9ac4eb44d7858f9b3df1fb Mon Sep 17 00:00:00 2001 From: FOFOU FONZAM Gui Arnaud Date: Tue, 10 Dec 2024 14:01:10 +0100 Subject: [PATCH 07/12] Update sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql Co-authored-by: Alessandro Domanico --- ...15_add_missing_foreign_key_for_auditable_entities.sql | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql index ddee3e303..d69ddaf64 100644 --- a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -65,12 +65,19 @@ FOREIGN KEY (MS_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTI -- OH_USER_SETTINGS -- +ALTER TABLE OH_USER_SETTINGS +DROP CONSTRAINT USS_US_ID_A_FK; + ALTER TABLE OH_USER_SETTINGS ADD CONSTRAINT FK_USER_SETTINGS_USER_1 -FOREIGN KEY (USS_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; +FOREIGN KEY (USS_US_ID_A) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE OH_USER_SETTINGS ADD CONSTRAINT FK_USER_SETTINGS_USER_2 +FOREIGN KEY (USS_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE OH_USER_SETTINGS +ADD CONSTRAINT FK_USER_SETTINGS_USER_3 FOREIGN KEY (USS_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; -- OH_PATIENT_CONSENSUS -- From 7cae83ee864c96b8a6e2e23eea89744301819af5 Mon Sep 17 00:00:00 2001 From: FOFOU FONZAM Gui Arnaud Date: Tue, 10 Dec 2024 14:34:48 +0100 Subject: [PATCH 08/12] Update sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql Co-authored-by: Alessandro Domanico --- ...tep_a115_add_missing_foreign_key_for_auditable_entities.sql | 3 --- 1 file changed, 3 deletions(-) diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql index d69ddaf64..41ac0df47 100644 --- a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -93,10 +93,7 @@ FOREIGN KEY (PTC_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACT ALTER TABLE OH_PATIENT_CONSENSUS DROP CONSTRAINT oh_patient_consensus_ibfk_1; -SET FOREIGN_KEY_CHECKS = 0; ALTER TABLE OH_PATIENT_CONSENSUS ADD CONSTRAINT FK_PATIENT_CONSENSUS_PATIENT FOREIGN KEY (PTC_PAT_ID) REFERENCES OH_PATIENT (PAT_ID) ON DELETE NO ACTION ON UPDATE NO ACTION; - -SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file From 61c3094200ac34ad36590de3e9c11d1c87bb9f33 Mon Sep 17 00:00:00 2001 From: Alessandro Domanico Date: Tue, 10 Dec 2024 14:41:02 +0100 Subject: [PATCH 09/12] Renmove empty lines --- ...ep_a115_add_missing_foreign_key_for_auditable_entities.sql | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql index 41ac0df47..6dd9eb0db 100644 --- a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -61,8 +61,6 @@ FOREIGN KEY (MS_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON ALTER TABLE OH_MEDICALDSRSTOCK ADD CONSTRAINT FK_MEDICALDSRSTOCK_USER_2 FOREIGN KEY (MS_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; - - -- OH_USER_SETTINGS -- ALTER TABLE OH_USER_SETTINGS @@ -92,8 +90,6 @@ FOREIGN KEY (PTC_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACT ALTER TABLE OH_PATIENT_CONSENSUS DROP CONSTRAINT oh_patient_consensus_ibfk_1; - - ALTER TABLE OH_PATIENT_CONSENSUS ADD CONSTRAINT FK_PATIENT_CONSENSUS_PATIENT FOREIGN KEY (PTC_PAT_ID) REFERENCES OH_PATIENT (PAT_ID) ON DELETE NO ACTION ON UPDATE NO ACTION; From 9e1e5de63333015898075d5487ee5f77ee60633a Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Tue, 10 Dec 2024 16:38:39 +0100 Subject: [PATCH 10/12] update sql script --- sql/step_04_all_following_steps.sql | 2 +- ..._a115_add_missing_foreign_key_for_auditable_entities.sql | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sql/step_04_all_following_steps.sql b/sql/step_04_all_following_steps.sql index b6a92ab9c..04f55d637 100644 --- a/sql/step_04_all_following_steps.sql +++ b/sql/step_04_all_following_steps.sql @@ -108,4 +108,4 @@ source step_a111_add_missing_lock_columns.sql; source step_a112_users_and_groups_soft_deletion.sql; source step_a113_alter_table_medicalinventory.sql; source step_a114_medical_type_soft_deletion.sql; -source step_a115_add_missing_foreign_key_for_auditable_entities.sql \ No newline at end of file +--source step_a115_add_missing_foreign_key_for_auditable_entities.sql \ No newline at end of file diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql index d69ddaf64..40830c58a 100644 --- a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -93,10 +93,6 @@ FOREIGN KEY (PTC_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACT ALTER TABLE OH_PATIENT_CONSENSUS DROP CONSTRAINT oh_patient_consensus_ibfk_1; -SET FOREIGN_KEY_CHECKS = 0; - ALTER TABLE OH_PATIENT_CONSENSUS ADD CONSTRAINT FK_PATIENT_CONSENSUS_PATIENT -FOREIGN KEY (PTC_PAT_ID) REFERENCES OH_PATIENT (PAT_ID) ON DELETE NO ACTION ON UPDATE NO ACTION; - -SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file +FOREIGN KEY (PTC_PAT_ID) REFERENCES OH_PATIENT (PAT_ID) ON DELETE NO ACTION ON UPDATE NO ACTION; \ No newline at end of file From 97d215aebb8a7ebf12a32f020bec89fa65e324e8 Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Wed, 11 Dec 2024 08:53:50 +0100 Subject: [PATCH 11/12] update sql/step_04_all_following_steps.sql --- sql/step_04_all_following_steps.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/step_04_all_following_steps.sql b/sql/step_04_all_following_steps.sql index 04f55d637..b6a92ab9c 100644 --- a/sql/step_04_all_following_steps.sql +++ b/sql/step_04_all_following_steps.sql @@ -108,4 +108,4 @@ source step_a111_add_missing_lock_columns.sql; source step_a112_users_and_groups_soft_deletion.sql; source step_a113_alter_table_medicalinventory.sql; source step_a114_medical_type_soft_deletion.sql; ---source step_a115_add_missing_foreign_key_for_auditable_entities.sql \ No newline at end of file +source step_a115_add_missing_foreign_key_for_auditable_entities.sql \ No newline at end of file From 94fedb49bfc57534a1b79d073c2449b17f3e6f13 Mon Sep 17 00:00:00 2001 From: FOFOU FONZAM Gui Arnaud Date: Wed, 11 Dec 2024 09:06:58 +0100 Subject: [PATCH 12/12] Update sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql --- sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql index 702aaeacd..ed66db58a 100644 --- a/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql +++ b/sql/step_a115_add_missing_foreign_key_for_auditable_entities.sql @@ -61,6 +61,7 @@ FOREIGN KEY (MS_CREATED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON ALTER TABLE OH_MEDICALDSRSTOCK ADD CONSTRAINT FK_MEDICALDSRSTOCK_USER_2 FOREIGN KEY (MS_LAST_MODIFIED_BY) REFERENCES OH_USER (US_ID_A) ON DELETE NO ACTION ON UPDATE NO ACTION; + -- OH_USER_SETTINGS -- ALTER TABLE OH_USER_SETTINGS