summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-16 13:15:07 +0200
committerTor Andersson <tor@ccxvii.net>2021-07-16 14:18:36 +0200
commitf8aaf2a6f573b15777601c38513d9a7c869f1462 (patch)
tree93f7a147f2965d277475868bc04a4fb551966f2c /tools
parent11944e43b67c079ccb1ec398e468b2d774b9ec40 (diff)
downloadserver-f8aaf2a6f573b15777601c38513d9a7c869f1462.tar.gz
Rewrite is_your_turn SQL statements.
Now they should work in all lobby views.
Diffstat (limited to 'tools')
-rw-r--r--tools/sql/schema.txt3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/sql/schema.txt b/tools/sql/schema.txt
index 71b6f72..e731c8c 100644
--- a/tools/sql/schema.txt
+++ b/tools/sql/schema.txt
@@ -153,12 +153,9 @@ CREATE VIEW game_view AS
, games.status
, games.result
, games.active AS active_role
- , active.user_id AS active_id
- , active.user_name AS active_name
-- , games.state
FROM games
JOIN titles USING ( title_id )
JOIN users AS owner ON games.owner_id = owner.user_id
LEFT JOIN player_list_view AS players USING ( game_id )
- LEFT JOIN player_view AS active ON games.game_id = active.game_id AND games.active = active.role
;