Skip to content

Commit 8b78ce2

Browse files
authored
fix(Sync): Order Problem [PatientAttributes] (#5795)
**Story card:** [SIMPLEBGD-27](https://rtsl.atlassian.net/browse/SIMPLEBGD-27) ## Because #5768 repeats itself in `patient_attributes` ## This addresses Applying the same transforms in #5768 ## Verification Sync failures should resolve
1 parent 7e30964 commit 8b78ce2

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class UnlinkPatientsFromPatientAttributes < ActiveRecord::Migration[6.1]
2+
def change
3+
remove_foreign_key :patient_attributes, :patients
4+
end
5+
end

db/structure.sql

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9509,14 +9509,6 @@ ALTER TABLE ONLY public.dr_rai_targets
95099509
ADD CONSTRAINT fk_rails_f0398a9ae0 FOREIGN KEY (dr_rai_indicators_id) REFERENCES public.dr_rai_indicators(id);
95109510

95119511

9512-
--
9513-
-- Name: patient_attributes fk_rails_fc46ae3757; Type: FK CONSTRAINT; Schema: public; Owner: -
9514-
--
9515-
9516-
ALTER TABLE ONLY public.patient_attributes
9517-
ADD CONSTRAINT fk_rails_fc46ae3757 FOREIGN KEY (patient_id) REFERENCES public.patients(id);
9518-
9519-
95209512
--
95219513
-- PostgreSQL database dump complete
95229514
--
@@ -9697,14 +9689,12 @@ INSERT INTO "schema_migrations" (version) VALUES
96979689
('20250924101441'),
96989690
('20250924102156'),
96999691
('20250925094123'),
9700-
('20251125090819'),
9701-
('20251211073126'),
9702-
('20260105123000'),
97039692
('20251112085230'),
97049693
('20251112091000'),
97059694
('20251119095624'),
97069695
('20251119133109'),
97079696
('20251120141950'),
9697+
('20251125090819'),
97089698
('20251126052630'),
97099699
('20251127104720'),
97109700
('20251201094315'),
@@ -9714,14 +9704,18 @@ INSERT INTO "schema_migrations" (version) VALUES
97149704
('20251205091911'),
97159705
('20251208104102'),
97169706
('20251210061204'),
9707+
('20251211073126'),
97179708
('20251211154907'),
97189709
('20251215113615'),
97199710
('20251219061210'),
9711+
('20260105123000'),
9712+
('20260120115014'),
9713+
('20260127150000'),
97209714
('20260128094448'),
9721-
('20260212195326'),
97229715
('20260205110957'),
9716+
('20260212195326'),
97239717
('20260224063659'),
9724-
('20260120115014'),
9725-
('20260127150000'),
9726-
('20260316093605');
9718+
('20260316093605'),
9719+
('20260407162829');
9720+
97279721

0 commit comments

Comments
 (0)