mirror of
https://github.com/sigmasternchen/mobmash.click
synced 2025-03-15 08:09:02 +00:00
feat: Add session to match view
This commit is contained in:
parent
1f00915f81
commit
7b025f9ca3
1 changed files with 4 additions and 2 deletions
|
@ -28,14 +28,16 @@ SELECT mm_matches.id,
|
|||
mm_matches.mob1fk AS mob,
|
||||
mm_matches.mob2fk AS opponent,
|
||||
mm_matches.winner = 1 AS won,
|
||||
mm_matches.created
|
||||
mm_matches.created,
|
||||
mm_matches.session
|
||||
FROM mm_matches
|
||||
UNION
|
||||
SELECT mm_matches.id,
|
||||
mm_matches.mob2fk AS mob,
|
||||
mm_matches.mob1fk AS opponent,
|
||||
mm_matches.winner = 2 AS won,
|
||||
mm_matches.created
|
||||
mm_matches.created,
|
||||
mm_matches.session
|
||||
FROM mm_matches;
|
||||
|
||||
CREATE VIEW mm_rating(mob, rating, last_update) AS
|
||||
|
|
Loading…
Reference in a new issue