This commit is contained in:
API runner
2026-09-04 19:11:49 +00:00
parent b933f09187
commit 3d063af9ae
130 changed files with 4876 additions and 53 deletions
+13
View File
@@ -0,0 +1,13 @@
-- One-shot: run in Supabase Dashboard → SQL Editor **before** the updated
-- schemas/rpc_settle_match_reward.sql.
-- Records which sides received participant_cc on settle so winner PATCH retries
-- can return the same cc_awarded_* flags without crediting CC twice.
alter table public.matches
add column if not exists cc_awarded_red boolean null,
add column if not exists cc_awarded_blue boolean null;
comment on column public.matches.cc_awarded_red is
'Whether user_red received participant_cc on settle; null on matches settled before this column existed (treat as true).';
comment on column public.matches.cc_awarded_blue is
'Whether user_blue received participant_cc on settle; null on matches settled before this column existed (treat as true).';