From: Rogan Hamby Date: Mon, 17 Oct 2016 15:03:02 +0000 (-0400) Subject: add deleting holds by request lib X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=3e12dd990b438752403a9e21bdfbd47deb95ca17;hp=6b1c7d0b5585d2de5fac7d7803c475f88d560186 add deleting holds by request lib --- diff --git a/remove_ou_data/03_remove_holds.sql b/remove_ou_data/03_remove_holds.sql index 433f3ef..de1aac1 100644 --- a/remove_ou_data/03_remove_holds.sql +++ b/remove_ou_data/03_remove_holds.sql @@ -30,6 +30,8 @@ DELETE FROM action.hold_request WHERE current_shelf_lib IN (SELECT (actor.org_unit_descendants(id)).id from actor.org_unit where shortname = :ou_to_del); DELETE FROM action.hold_request WHERE pickup_lib IN (SELECT (actor.org_unit_descendants(id)).id from actor.org_unit where shortname = :ou_to_del); +DELETE FROM action.hold_request WHERE request_lib IN +(SELECT (actor.org_unit_descendants(id)).id from actor.org_unit where shortname = :ou_to_del); DELETE FROM action.aged_hold_request WHERE pickup_lib IN (SELECT (actor.org_unit_descendants(id)).id from actor.org_unit where shortname = :ou_to_del);