diff --git a/deletescript/sql/delete-functional-test-data.sql b/deletescript/sql/delete-functional-test-data.sql index df2830e37..8cc992afe 100644 --- a/deletescript/sql/delete-functional-test-data.sql +++ b/deletescript/sql/delete-functional-test-data.sql @@ -18,6 +18,12 @@ where case_worker_id in ( ); +delete from case_worker_skill +where case_worker_id in ( + select cwp.case_worker_id from case_worker_profile cwp + where cwp.email_id like (values('cwr-rd-func-test-user-only-%')) +); + delete from case_worker_location where case_worker_id in ( select cwp.case_worker_id from case_worker_profile cwp @@ -36,6 +42,13 @@ where case_worker_id in ( where cwp.email_id like (values('staff-rd-profile-func-test-user-only-%')) ); + +delete from case_worker_skill +where case_worker_id in ( + select cwp.case_worker_id from case_worker_profile cwp + where cwp.email_id like (values('staff-rd-profile-func-test-user-only-%')) +); + delete from case_worker_profile cwp where email_id like (values('cwr-rd-func-test-user-only-%')) or email_id like (values('staff-rd-profile-func-test-user-only-%')) ;