From a943c1d82aa08a967756a0c887b58602a48d20e9 Mon Sep 17 00:00:00 2001 From: Markus Reinhardt Date: Mon, 11 Dec 2023 06:15:57 +0100 Subject: [PATCH 1/2] Remove duplicate Patient --- HaemophilusWeb/Database/20231211_DeduplicatePatient.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 HaemophilusWeb/Database/20231211_DeduplicatePatient.sql diff --git a/HaemophilusWeb/Database/20231211_DeduplicatePatient.sql b/HaemophilusWeb/Database/20231211_DeduplicatePatient.sql new file mode 100644 index 00000000..507de6c4 --- /dev/null +++ b/HaemophilusWeb/Database/20231211_DeduplicatePatient.sql @@ -0,0 +1,4 @@ +-- Backup 20231211_removeDuplicatePatient + +UPDATE MeningoSendings SET MeningoPatientId=10765 WHERE MeningoPatientId = 10766 +DELETE FROM MeningoPatients WHERE PatientId = 10766 \ No newline at end of file From cc71bafb2353ead6684a6177a72c2607b233d9cb Mon Sep 17 00:00:00 2001 From: Markus Reinhardt Date: Fri, 26 Jan 2024 07:07:49 +0100 Subject: [PATCH 2/2] Another duplicate to remove --- HaemophilusWeb/Database/20240126_DeduplicatePatient.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 HaemophilusWeb/Database/20240126_DeduplicatePatient.sql diff --git a/HaemophilusWeb/Database/20240126_DeduplicatePatient.sql b/HaemophilusWeb/Database/20240126_DeduplicatePatient.sql new file mode 100644 index 00000000..1de2f4bf --- /dev/null +++ b/HaemophilusWeb/Database/20240126_DeduplicatePatient.sql @@ -0,0 +1,3 @@ +-- Backup 20240126_removeDuplicatePatient +UPDATE MeningoSendings SET MeningoPatientId=10691 WHERE MeningoPatientId = 10684 +DELETE FROM MeningoPatients WHERE PatientId = 10684 \ No newline at end of file