diff options
| author | Kapil Viren Ahuja <kvahuja@users.noreply.github.com> | 2017-02-19 17:04:35 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-19 17:04:35 +0530 |
| commit | 7eb07c0ccf2f464e3936b24136e41471ff1c1ff7 (patch) | |
| tree | c117aecbc2276c875edd7a328f15ea872c1c8b64 /queries/match_participation.sql | |
| parent | eaf6b29760f13040444707eecf9c342c67bd6ffb (diff) | |
| parent | d940ad82f7e34576bf6cc6b8a93cbc298765315e (diff) | |
| download | shrinker-7eb07c0ccf2f464e3936b24136e41471ff1c1ff7.tar.gz shrinker-7eb07c0ccf2f464e3936b24136e41471ff1c1ff7.zip | |
Merge pull request #14 from vainglorygame/features/web-db-model-refactoring
Features web db model refactoring
Diffstat (limited to 'queries/match_participation.sql')
| -rw-r--r-- | queries/match_participation.sql | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/queries/match_participation.sql b/queries/match_participation.sql deleted file mode 100644 index 43785c6..0000000 --- a/queries/match_participation.sql +++ /dev/null @@ -1,24 +0,0 @@ -SELECT - -relationships->'player'->'data'->>'id' AS player_id, -0 AS "match_id", -0 AS "rosterId", -0 AS "fk_player_id", -0 AS "fk_match_results_id", -attributes->>'actor' AS "hero", -COALESCE(NULLIF(attributes->'stats'->>'kills', ''), '0')::int AS "kills", -(attributes->'stats'->>'deaths')::int AS "deaths", -(attributes->'stats'->>'assists')::int AS "assists", -0.0 AS "KD", -0.0 AS "KDA", -0 AS "killParticipation", -COALESCE(NULLIF(attributes->'stats'->>'nonJungleMinionKills', ''), '0')::int AS "laneMinionsSlayed", -COALESCE(NULLIF(attributes->'stats'->>'minionKills', ''), '0')::int AS "jungleMinionsSlayed", -COALESCE(NULLIF(attributes->'stats'->>'turretCaptures', ''), '0')::int AS "turretsDestroyed", -COALESCE(NULLIF(attributes->'stats'->>'krakenCaptures', ''), '0')::int AS "krakenCaptures", -COALESCE(NULLIF(attributes->'stats'->>'goldMineCaptures', ''), '0')::int AS "goldMineCaptures", -COALESCE(NULLIF(attributes->'stats'->>'crystalMineCaptures', ''), '0')::int AS "crystalMineCaptures", -(attributes->'stats'->>'wentAfk')::bool::int AS "wentAfk", -FALSE AS "perfectGame" - -FROM participant |
