From: Ben Shum Date: Tue, 3 Mar 2015 02:49:55 +0000 (-0500) Subject: LP#1125270: Add a DROP FUNCTION for actor.usr_purge_data X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e11f4d93c4c0b970b94583f482089daa3c98bd5f;p=Evergreen.git LP#1125270: Add a DROP FUNCTION for actor.usr_purge_data Apparently this caused problems on upgrading from 2.0 to 2.1 back in the day, and adding a DROP FUNCTION ahead of the CREATE dealt with the situation. Signed-off-by: Ben Shum Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql index 3638766491..219da6bedf 100644 --- a/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql +++ b/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql @@ -310,6 +310,8 @@ INSERT INTO config.hold_matrix_weights(name, user_home_ou, request_ou, pickup_ou INSERT INTO config.weight_assoc(active, org_unit, circ_weights, hold_weights) VALUES (true, 1, 1, 1); +-- LP1125270 +DROP FUNCTION IF EXISTS actor.usr_purge_data(INT, INT); -- 0480 CREATE OR REPLACE FUNCTION actor.usr_purge_data( src_usr IN INTEGER,