diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-23 12:17:25 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-23 12:24:54 +0100 |
commit | 3f2c801b616f4c23c28c03d938bbadefefb49eb0 (patch) | |
tree | b7e0eb5008c8faa93245c8c7f6037d77701a1962 /schema.sql | |
parent | 9f829056d1f3c45a0cea54dbd58d154274e2964b (diff) | |
download | server-3f2c801b616f4c23c28c03d938bbadefefb49eb0.tar.gz |
Remove very inactive users from tournament queue.
Count tournaments as "open" while they still have players queued.
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -632,6 +632,17 @@ create table if not exists tm_winners ( create index if not exists tm_winners_pool_idx on tm_winners(pool_id); +drop view if exists tm_queue_view; +create view tm_queue_view as + select + tm_queue.* + from + tm_queue + join user_last_seen using(user_id) + where + julianday() - julianday(atime) < 3 + ; + drop view if exists tm_pool_active_view; create view tm_pool_active_view as select |