Closed cheshire137 closed 6 years ago
SQL to run before:
SELECT match_id, ARRAY_AGG(hero_id ORDER BY hero_id) AS hero_ids FROM heroes_matches GROUP BY match_id ORDER BY match_id;
SQL to run after:
SELECT id AS match_id, hero_ids FROM matches WHERE hero_ids <> '{}' ORDER BY match_id;
This is like #71 but for heroes_matches instead of match_friends.