remove auditor history edits
authorRogan Hamby <rhamby@esilibrary.com>
Mon, 17 Oct 2016 14:53:07 +0000 (10:53 -0400)
committerRogan Hamby <rhamby@esilibrary.com>
Mon, 17 Oct 2016 14:53:07 +0000 (10:53 -0400)
remove_ou_data/15_clear_auditors.sql
remove_ou_data/README

index ab941c3..20864e2 100644 (file)
@@ -37,5 +37,9 @@ DELETE FROM auditor.asset_call_number_history WHERE owning_lib IN (
     FROM actor.org_unit
     WHERE shortname = :ou_to_del
 );
-
+DELETE FROM auditor.actor_usr_address_history WHERE usr IN (
+    SELECT au.id
+    FROM actor.usr
+    WHERE home_ou = :ou_to_del
+);
 COMMIT;
index c740409..00d2bf3 100644 (file)
@@ -17,4 +17,3 @@ remove the actor.org_unit entries themselves.
 TODO:
 
 -- remove event output that is no longer associated with any events
--- remvoe user address auditor entries