SET STATEMENT_TIMEOUT = 0;
+-- apply the new circ retention age
+-- add 1 day to account for any variation in purge run time.
+UPDATE config.global_flag
+ SET value = '1 year 1 day', enabled = TRUE
+ WHERE name = 'history.circ.retention_age';
+
\set eg_version '''2.7.8'''
SELECT evergreen.upgrade_deps_block_check('0960', :eg_version);
\set ON_ERROR_STOP on
set client_min_messages = 'notice';
set statement_timeout = 0;
-
-update config.global_flag set value = '0', enabled = true where name = 'history.circ.retention_count';
-update config.global_flag set value = '6 months', enabled = true where name = 'history.circ.retention_age';
-update config.global_flag set enabled = true where name = 'history.circ.retention_uses_last_finished';
-update config.global_flag set enabled = true where name = 'history.circ.retention_age_is_min';
\pset tuples_only on
-select action.purge_circulations_custom(:ts_start,:ts_end);
+select action.purge_circulations_custom(:ts_start, :ts_end);
commit;