delete messages whose games have been deleted

This commit is contained in:
Eric House 2013-10-09 20:41:14 -07:00
parent ec468ef3ba
commit fe8bb0932c

View file

@ -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() {