-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#73 | Add test to ensure that duplicate runs do not create duplicate …
…rows for organisations and groups
- Loading branch information
Showing
2 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
drop schema if exists ogi1 cascade ; | ||
drop schema if exists ogi2 cascade ; | ||
drop schema if exists og cascade ; | ||
|
||
delete from organisation where id = 13; | ||
delete from organisation where id = 14; | ||
delete from organisation_group where id = 11; | ||
delete from organisation_group_organisation where id = 11; | ||
delete from organisation_group_organisation where id = 12; | ||
delete from address_level_type where organisation_id in (13, 14); | ||
delete from address_level where organisation_id in (13, 14); | ||
delete from users where organisation_id in (13, 14); | ||
delete from subject_type where organisation_id in (13, 14); | ||
delete from operational_subject_type where organisation_id in (13, 14); | ||
delete from program where organisation_id in (13, 14); | ||
delete from operational_program where organisation_id in (13, 14); | ||
delete from encounter_type where organisation_id in (13, 14); | ||
delete from operational_encounter_type where organisation_id in (13, 14); | ||
delete from concept where organisation_id in (13, 14); | ||
delete from concept_answer where organisation_id in (13, 14); | ||
delete from form where organisation_id in (13, 14); | ||
delete from form_element_group where organisation_id in (13, 14); | ||
delete from form_element where organisation_id in (13, 14); | ||
delete from form_mapping where organisation_id in (13, 14); | ||
delete from decision_concept where form_id in (select id from form where organisation_id in (13, 14)); | ||
delete from gender where organisation_id in (13, 14); | ||
delete from individual where organisation_id in (13, 14); | ||
delete from program_enrolment where organisation_id in (13, 14); | ||
delete from program_encounter where organisation_id in (13, 14); | ||
delete from encounter where organisation_id in (13, 14); | ||
delete from entity_approval_status where organisation_id in (13, 14); |