Skip to content

Commit

Permalink
Revert "Remove date_created filter on the appointment migration query" (
Browse files Browse the repository at this point in the history
  • Loading branch information
makombe authored Sep 21, 2024
1 parent 806da7d commit 7c37fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/resources/MigrateAppointmentsFromObs.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

SET FOREIGN_KEY_CHECKS=0;
delete from patient_appointment_audit;
delete from patient_appointment where appointment_service_id is null or (appointment_service_id in (1,2,3,4,5,6,7,8,9,13,11,12));
delete from patient_appointment where appointment_service_id is null or (appointment_service_id in (1,2,3,4,5,6,7,8,9,13,11,12) and date_created < '2024-04-25 18:00:00');
SET FOREIGN_KEY_CHECKS=1;


Expand Down

0 comments on commit 7c37fea

Please sign in to comment.