-
Notifications
You must be signed in to change notification settings - Fork 16
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
Stage data adds duplicate key #614
Comments
@jmgilman could this be due to my PR with the fund 11 data that was not merged yet when you did the migration? |
Pr with fund11 entry #612 |
There's still an issue here, as at the moment when the migration is run on a eventdb with existing data, it fails because of duplicate row IDs. The SQL script needs to be modified to handle this situation. |
Fixed that in #624 |
During the migration, stage-specific data is added. Using the
dev
cluster as an example, the SQL files that get imported are here. The test fund event that is added in this section uses arow_id
of 0 which conflicts with the historical data that was added in a previous step.The result is the migration fails with:
We should give the test event a very high row ID (i.e.,
9999
). If we do a UPSERT, it will end up overwriting some of the historical data, and the API will return incorrect data.The text was updated successfully, but these errors were encountered: