-
Notifications
You must be signed in to change notification settings - Fork 82
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
788 alembic #1033
788 alembic #1033
Conversation
add missing models to env.py ignore user table as it's for local purposes
backend/migrations/versions/a375771e4d0f__alembic_sync_state.py
Outdated
Show resolved
Hide resolved
backend/migrations/versions/a375771e4d0f__alembic_sync_state.py
Outdated
Show resolved
Hide resolved
backend/migrations/versions/a375771e4d0f__alembic_sync_state.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some final touches and comments on the actual migration script
I think this PR is close - the one last thing I would add is a better way to handle upgrades for local deployments of dataall (i.e. when I tested the following change out in
I think the final change(s) I recommend is we add the above change and a Note in the "Managing migrations" Section of the |
From a code perspective I think this PR is good to go. I will do a final test by deploying the PR to an AWS deployment to verify that the migrations run successfully on pre-existing AWS deployments. |
Tested in AWS:
|
rename migration in the file
remove "_" from "describe_changes_shortly"
Lie about 'rename the migration' in README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR looks good to merge! Thanks @SofiaSazonova for dealing with a bunch of iterations on this one 😄
Feature or Bugfix
Detail
make generate-migrations
command is added. It can be applied right after the docker container with psql is startedRelates
data.all in local environment starts in a broken db state #788
Security
N/A
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.