4477406fe7cfd08aabb1410132aeb2eaf5814d00 — Jiri Vlasak 4 months ago 87cdf3a
Add upkeep script to delete -10 priority areas

When priority of an area is set to -10, delete all the commits, squares,
and the area when upkeep timer is trigged.
1 files changed, 3 insertions(+), 0 deletions(-)

A upkeep/scripts/delete_areas_with_priority_-10.sql
A upkeep/scripts/delete_areas_with_priority_-10.sql => upkeep/scripts/delete_areas_with_priority_-10.sql +3 -0
@@ 0,0 1,3 @@
DELETE FROM current_commits cc USING current_areas ca WHERE ca.aid = cc.aid AND ca.priority=-10;
DELETE FROM current_squares cs USING current_areas ca WHERE ca.aid = cs.aid AND ca.priority=-10;
DELETE FROM current_areas ca WHERE ca.priority=-10;