Update action.purge_circulations_custom definition to include the start
and end time function parameters to ensure the existing function is
replaced instead of creating a new function.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
-- NOTE: ^-- stock CSV template does not include checkin_time, so
-- no modifications are required.
-CREATE OR REPLACE FUNCTION action.purge_circulations_custom () RETURNS INT AS $func$
+CREATE OR REPLACE FUNCTION action.purge_circulations_custom
+ (in_time_start TIMESTAMPTZ, in_time_end TIMESTAMPTZ) RETURNS INT AS $func$
DECLARE
- usr_keep_age actor.usr_setting%ROWTYPE;
- usr_keep_start actor.usr_setting%ROWTYPE;
org_keep_age INTERVAL;
org_use_last BOOL = false;
org_age_is_min BOOL = false;