]> git.koha-community.org Git - koha.git/commit
Bug 16672 - Add ability to remove expired holidays from special_holidays
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 6 Jun 2016 13:52:45 +0000 (13:52 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Jun 2016 15:45:54 +0000 (15:45 +0000)
commitbf6300975889c65cd2e9e867fe2a261ff973bbaf
treefc393b843bcd3f8189770446b6b5802e584dc48e
parentae4be45444dd8e6a65dc7170cfc43c60de328f38
Bug 16672 - Add ability to remove expired holidays from special_holidays

It would be very helpful if the cleanup_database.pl script had the
ability to delete holidays from the special_holidays table there were
older than a given number of days in the past.

Test Plan:
1) Apply this patch
2) Create some unique holidays in the past of varying ages
3) Test the new switch '--unique-holidays DAYS' for cleanup_database.pl
4) Verify only holidays older then the specified number of days are removed

NOTE: The language 'unique holdays' is used in the interface to match
      it's use in the staff web interface.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/cronjobs/cleanup_database.pl