diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-20 17:33:26 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-20 17:33:26 +0100 |
| commit | 9ae212a23754035be50e9125a7966544e2d525fb (patch) | |
| tree | 1df324865462eedf89a3efd44d7f0282e55298da | |
| parent | 0a0acb5ad79cd1a15c5c715fa5f6abae0dc25736 (diff) | |
| download | processor-9ae212a23754035be50e9125a7966544e2d525fb.tar.gz processor-9ae212a23754035be50e9125a7966544e2d525fb.zip | |
update queries to work with vainsocial.com#develop
| -rw-r--r-- | queries/match.sql | 6 | ||||
| -rw-r--r-- | queries/participant.sql | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/queries/match.sql b/queries/match.sql index 2963172..5dfa692 100644 --- a/queries/match.sql +++ b/queries/match.sql @@ -7,9 +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 +--relationships->'rosters'->'data'->0->>'id' as "roster_1", +--relationships->'rosters'->'data'->1->>'id' as "roster_2" FROM "match" diff --git a/queries/participant.sql b/queries/participant.sql index e9f8264..d1d81ce 100644 --- a/queries/participant.sql +++ b/queries/participant.sql @@ -1,7 +1,7 @@ SELECT id AS "apiId", -relationships->'player'->'data'->>'id' AS "player_apiId", +relationships->'player'->'data'->>'id' AS "playerId", attributes->>'actor' AS "hero", (attributes->'stats'->>'assists')::int AS "assists", |
