From 48e5afbbc3c9b3af8e9a9d61c7c7170dbb268eda Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Sun, 29 Nov 2020 23:40:48 +0100 Subject: [PATCH] Update readme with upkeep scripts description --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 9eabd18..b1ca7f1 100644 --- a/README.md +++ b/README.md @@ -345,3 +345,27 @@ hours. systemctl enable damn_upkeep.service systemctl start damn_upkeep.timer + +Automatically unlock square +--------------------------- + +The `unlock_square.sql` upkeep script unlocks a square that is locked for more +than two hours. + +Update areas statistics +----------------------- + +The `update_areas_statistics.sql` script updates *squares to map*, *squares to +review* and *squares done* fields of all *current* areas (areas with a priority +greater than zero.) + +Delete archived areas +--------------------- + +When an area has priority `-10`, the `delete_areas_with_priority_-10.sql` +script deletes such an area including all its squares and commits during the +upkeep. + +**NOTE:** It works only for the areas with priority `-10`. For other archived +areas (areas with priority less than zero,) there is no special upkeep script +yet. -- 2.30.2