We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4edc3a commit cbd98e8Copy full SHA for cbd98e8
3 files changed
hasura/migrations/default/1762837745826_alter_table_public_friends_add_unique_player_steam_id_other_player_steam_id/down.sql
@@ -0,0 +1 @@
1
+alter table "public"."friends" drop constraint "friends_player_steam_id_other_player_steam_id_key";
hasura/migrations/default/1762837745826_alter_table_public_friends_add_unique_player_steam_id_other_player_steam_id/up.sql
+alter table "public"."friends" add constraint "friends_player_steam_id_other_player_steam_id_key" unique ("player_steam_id", "other_player_steam_id");
hasura/views/v_my_friends.sql
@@ -29,7 +29,7 @@ latest_elos AS (
29
FROM player_elo
30
ORDER BY steam_id, created_at DESC
31
)
32
-SELECT DISTINCT
+SELECT DISTINCT ON (p.steam_id, fr.friend_steam_id)
33
p.*,
34
fr.status,
35
fr.friend_steam_id,
0 commit comments