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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate alembic for database migrations #4

Merged
merged 6 commits into from
May 14, 2023
Merged

Integrate alembic for database migrations #4

merged 6 commits into from
May 14, 2023

Conversation

caarmen
Copy link
Owner

@caarmen caarmen commented May 13, 2023

  • Add the alembic dependency
  • Add the alembic module to scripts/codecheck.sh
  • Configure the alembic.ini and env.py files as documented to centralize the database connection url.
  • Uncomment file_template in alembic.ini to have timestamps in migration filenames
  • Follow steps here to create the initial database migration: https://stackoverflow.com/a/56651578/1204440 , using alembic revision --autogenerate --message "initial revision"

caarmen added 2 commits May 14, 2023 05:35
Run `alembic revision --autogenerate  --message "initial revision"`
Run `scripts/codecheck.sh` and remove unused imports in generated migration file
@caarmen caarmen merged commit d2bc417 into main May 14, 2023
@caarmen caarmen deleted the alembic branch May 14, 2023 03:53
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.

1 participant