[open-ils-commits] r13589 - trunk/Open-ILS/src/sql/Pg (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jul 14 14:22:37 EDT 2009


Author: scottmk
Date: 2009-07-14 14:22:34 -0400 (Tue, 14 Jul 2009)
New Revision: 13589

Modified:
   trunk/Open-ILS/src/sql/Pg/999.functions.global.sql
Log:
Add tables from the auditor schema to actor.usr_purge_data().


Modified: trunk/Open-ILS/src/sql/Pg/999.functions.global.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/999.functions.global.sql	2009-07-14 17:12:01 UTC (rev 13588)
+++ trunk/Open-ILS/src/sql/Pg/999.functions.global.sql	2009-07-14 18:22:34 UTC (rev 13589)
@@ -419,7 +419,6 @@
 	UPDATE acq.purchase_order SET editor = dest_usr WHERE editor = src_usr;
 
 	-- action.*
-
 	DELETE FROM action.circulation WHERE usr = src_usr;
 	UPDATE action.circulation SET circ_staff = dest_usr WHERE circ_staff = src_usr;
 	UPDATE action.circulation SET checkin_staff = dest_usr WHERE checkin_staff = src_usr;
@@ -459,6 +458,16 @@
 	UPDATE asset.copy SET editor = dest_usr WHERE editor = src_usr;
 	UPDATE asset.copy_note SET creator = dest_usr WHERE creator = src_usr;
 
+	-- auditor.*
+	DELETE FROM auditor.usr_address_history WHERE id = src_usr;
+	DELETE FROM auditor.usr_history WHERE id = src_usr;
+	UPDATE auditor.asset_call_number_history SET creator = dest_usr WHERE creator = src_usr;
+	UPDATE auditor.asset_call_number_history SET editor  = dest_usr WHERE editor  = src_usr;
+	UPDATE auditor.asset_copy_history SET creator = dest_usr WHERE creator = src_usr;
+	UPDATE auditor.asset_copy_history SET editor  = dest_usr WHERE editor  = src_usr;
+	UPDATE auditor.asset_biblio_record_entry_history SET creator = dest_usr WHERE creator = src_usr;
+	UPDATE auditor.asset_biblio_record_entry_history SET editor  = dest_usr WHERE editor  = src_usr;
+
 	-- biblio.*
 	UPDATE biblio.record_entry SET creator = dest_usr WHERE creator = src_usr;
 	UPDATE biblio.record_entry SET editor = dest_usr WHERE editor = src_usr;



More information about the open-ils-commits mailing list