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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

apps/votes: change migration to delete and recreate tables #4938

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

fuzzylogic2000
Copy link
Contributor

I think this is a good solution. The migration is called the same and the state coming out of it is also the same. But instead of adding hashes for all existing tokens, the TokenVote and the VotingToken tables are deleted and then recreated. As this was very easy, we can even just do the same again when we do increase the length of the token.

Locally, this wored with about 2.5 million tokens (which crashed before). I would like to merge together with @Rineee and try the crazy big table on dev. 馃ぉ

Copy link
Contributor

@Rineee Rineee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Lets try this out 馃槺

@Rineee Rineee merged commit 45a56d1 into main Feb 9, 2023
@Rineee Rineee deleted the kl-2023-02-redo-migrations branch February 9, 2023 15:21
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.

None yet

2 participants