summaryrefslogtreecommitdiff
path: root/tools/purge.sh
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-06 13:25:16 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-07 19:36:56 +0100
commit2fd3282e463f43b536facc5d6578acb5c3bbf95d (patch)
tree2a67cb7e61da723303a5a0e7e224c422a481aa81 /tools/purge.sh
parentdf3b42121f297c326fa8b481215252603c8937c4 (diff)
downloadserver-2fd3282e463f43b536facc5d6578acb5c3bbf95d.tar.gz
Clean up replay script.
Diffstat (limited to 'tools/purge.sh')
-rw-r--r--tools/purge.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/purge.sh b/tools/purge.sh
index a47bcdd..8084e03 100644
--- a/tools/purge.sh
+++ b/tools/purge.sh
@@ -12,3 +12,5 @@ sqlite3 db "DELETE FROM games $WHERE_TIMEOUT_OPEN"
echo "--- TIMED OUT ACTIVE GAMES ---"
sqlite3 db "SELECT * FROM game_view $WHERE_TIMEOUT_ACTIVE"
sqlite3 db "UPDATE games SET status = 3 $WHERE_TIMEOUT_ACTIVE"
+
+sqlite3 db "DELETE FROM replay WHERE game_id < 1346"