Skip to content

Fix duplicate table issue when dashboard has contact_rollups table before pegasus - #47993

Merged
TurnerRiley merged 1 commit into
stagingfrom
prevent-duplicate-tables-136-pegasus-project-migration
Sep 15, 2022
Merged

Fix duplicate table issue when dashboard has contact_rollups table before pegasus#47993
TurnerRiley merged 1 commit into
stagingfrom
prevent-duplicate-tables-136-pegasus-project-migration

Conversation

@TurnerRiley

Copy link
Copy Markdown
Contributor

In relation to this PR about pegasus migrations on project tables failing, other developers were having issues executing rake install without hitting a similar error from 136_drop_contact_rollups.rb. As stated in the PR above, this is "possibly because the tables are already created in dashboard by the time the pegasus migrations try to create the same tables."

The solution is to swap drop_table for drop_table? instead of commenting out the line (as in the fix in the slack thread above) so that other people don't run into the same problem when migrating tables.

Links

Related PR about fix pegasus migrations on project tables failing: here
Slack threads: original thread and similar thread

Testing story

Just like the related PR, "drone runs all pegasus migrations, passing drone run is a good indicator that setting up new environments from scratch should continue to work."

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@TurnerRiley
TurnerRiley requested a review from a team as a code owner September 7, 2022 22:42
@TurnerRiley TurnerRiley changed the title Fix duplicate table issue when dashboard has contact_rollups table before pegasus tries to create it Fix duplicate table issue when dashboard has contact_rollups table before pegasus Sep 7, 2022
@TurnerRiley
TurnerRiley requested a review from a team September 9, 2022 20:31

@davidsbailey davidsbailey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for doing this, @TurnerRiley !

@TurnerRiley
TurnerRiley merged commit 45f0d5d into staging Sep 15, 2022
@TurnerRiley
TurnerRiley deleted the prevent-duplicate-tables-136-pegasus-project-migration branch September 15, 2022 18:32
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.

2 participants