Skip to content

turn all pegasus migrations on project tables into no-ops - #47983

Merged
davidsbailey merged 3 commits into
stagingfrom
noop-pegasus-project-migrations
Sep 9, 2022
Merged

turn all pegasus migrations on project tables into no-ops#47983
davidsbailey merged 3 commits into
stagingfrom
noop-pegasus-project-migrations

Conversation

@davidsbailey

@davidsbailey davidsbailey commented Sep 7, 2022

Copy link
Copy Markdown
Member

Unlike dashboard, all previous pegasus migrations will be run when a developer is setting up a new system. some developers have been running into problems with the projects tables in pegasus (storage_apps and user_storage_ids), sometimes because the tables are already created in dashboard by the time the pegasus migrations try to create the same tables.

the solution is to remove all mention of pegasus projects tables from pegasus migrations. you can see from the history of some of the other nop migrations how we have done this in the past.

Testing story

drone runs all pegasus migrations. passing drone run is a good indicator that setting up new environments from scratch should continue to work. some developers running migrations on machines that are months out of date may end up not removing certain tables from pegasus DB, but that should be mostly harmless.

@davidsbailey
davidsbailey force-pushed the noop-pegasus-project-migrations branch from 3c99cc2 to 0f2cc1a Compare September 7, 2022 20:40
@davidsbailey
davidsbailey marked this pull request as ready for review September 8, 2022 04:52
@davidsbailey
davidsbailey requested a review from a team as a code owner September 8, 2022 04:52
@davidsbailey
davidsbailey requested review from a team, TurnerRiley and bethanyaconnor and removed request for a team September 8, 2022 04:56
@davidsbailey
davidsbailey merged commit 8f9c7d4 into staging Sep 9, 2022
@davidsbailey
davidsbailey deleted the noop-pegasus-project-migrations branch September 9, 2022 13:58
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