From 1f2c43dbef8f491afd4b8d336dc5907208d9aef2 Mon Sep 17 00:00:00 2001 From: kth13 Date: Fri, 2 Aug 2024 15:06:21 +0100 Subject: [PATCH] fixing formatting issues --- source/runbooks/delete-stale-draft-referrals.html.md.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/runbooks/delete-stale-draft-referrals.html.md.erb b/source/runbooks/delete-stale-draft-referrals.html.md.erb index cd38cb5..076501d 100644 --- a/source/runbooks/delete-stale-draft-referrals.html.md.erb +++ b/source/runbooks/delete-stale-draft-referrals.html.md.erb @@ -7,12 +7,10 @@ review_in: 1 year # Deleting stale draft referrals - -``` - ### sample command for cascade deleting draft referrals based on a condition ``` + delete from referral_service_user_data where referral_id in (select dr.id from draft_referral dr left outer join referral r on dr.id = r.id where r.id is null and dr.created_at <= CURRENT_DATE - INTERVAL '90 days') @@ -37,5 +35,7 @@ delete from draft_referral where id in (select dr.id from draft_referral dr left outer join referral r on dr.id = r.id where r.id is null and dr.created_at <= CURRENT_DATE - INTERVAL '90 days') +``` +