summaryrefslogtreecommitdiff
path: root/queries/match.sql
diff options
context:
space:
mode:
authorkvahuja <k.v.ahuja@gmail.com>2017-02-19 13:11:26 +0530
committerkvahuja <k.v.ahuja@gmail.com>2017-02-19 13:11:26 +0530
commitfd0c4e67b13ee0d90b579a3d2279ff7a815725c2 (patch)
tree57e6eeca38e1fe5e645dfa713a3ab6ef2bd6b4ff /queries/match.sql
parent22add9e90e2c62a3a08d64b8c73a66b8de77bc97 (diff)
downloadshrinker-fd0c4e67b13ee0d90b579a3d2279ff7a815725c2.tar.gz
shrinker-fd0c4e67b13ee0d90b579a3d2279ff7a815725c2.zip
match to roster relationship
Diffstat (limited to 'queries/match.sql')
-rw-r--r--queries/match.sql5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/match.sql b/queries/match.sql
index 8ee527a..4f82933 100644
--- a/queries/match.sql
+++ b/queries/match.sql
@@ -7,6 +7,9 @@ attributes->>'gameMode' AS "gameMode",
COALESCE(NULLIF(attributes->>'patchVersion', ''), '0') AS "patchVersion",
attributes->>'shardId' AS "shardId",
attributes->'stats'->>'endGameReason' AS "endGameReason",
-attributes->'stats'->>'queue' AS "queue"
+attributes->'stats'->>'queue' AS "queue",
+
+relationships->'rosters'->'data'->0->>'id' as roster_1,
+relationships->'rosters'->'data'->1->>'id' as roster_2
FROM match