From fe8bb0932cf9e99f1debcb9557aff2982fd7ae77 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 9 Oct 2013 20:41:14 -0700 Subject: [PATCH] delete messages whose games have been deleted --- xwords4/linux/scripts/discon_ok2.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/xwords4/linux/scripts/discon_ok2.sh b/xwords4/linux/scripts/discon_ok2.sh index 4f598ec50..0b95ef55c 100755 --- a/xwords4/linux/scripts/discon_ok2.sh +++ b/xwords4/linux/scripts/discon_ok2.sh @@ -62,6 +62,7 @@ function cleanup() { fi echo "DELETE FROM games WHERE room LIKE 'ROOM_%';" | psql -q -t xwgames + echo "DELETE FROM msgs WHERE NOT devid in (SELECT unnest(devids) from games);" | psql -q -t xwgames } function connName() {