Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add constraint for turn_scorings, and use upsert #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

avimoondra
Copy link
Owner

@avimoondra avimoondra commented May 19, 2020

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;

@avimoondra
Copy link
Owner Author

@avimoondra
Copy link
Owner Author

related to #77

@avimoondra avimoondra force-pushed the avimoondra/add-constraint-for-turn-scorings branch from e560c93 to 7f7ffb3 Compare May 20, 2020 17:43
@avimoondra
Copy link
Owner Author

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

@avimoondra
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant