fishbowl
fishbowl copied to clipboard
add constraint for turn_scorings, and use upsert
Need to clear these out first, otherwise migration will fail in prod...
with counts as (select turn_id, card_id, count(1) as count from turn_scorings group by turn_id, card_id)
select * from counts where count > 1;
related to #77
with counts as (select turn_id, card_id, count(1) as count from turn_scorings group by turn_id, card_id)
select count(1) from counts where count > 1;
as of wed may 20, 10:46am PST - 609