add deleting holds by request lib
authorRogan Hamby <rhamby@esilibrary.com>
Mon, 17 Oct 2016 15:03:02 +0000 (11:03 -0400)
committerRogan Hamby <rhamby@esilibrary.com>
Mon, 17 Oct 2016 15:03:02 +0000 (11:03 -0400)
remove_ou_data/03_remove_holds.sql

index 433f3ef..de1aac1 100644 (file)
@@ -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);