-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Alembic Setup #869
Alembic Setup #869
Conversation
for more information, see https://pre-commit.ci
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.
Extra tasks complete 👍
We don't need to change any permissions to the versions
dir.
Migration files are generated during local development and committed to the repo, then they are available to the migration container at runtime.
Running I can't run Error:
To reproduce: docker compose up -d api
docker compose exec api bash
alembic revision A good thing to test would be removing: |
#873 |
Description:
This pull request introduces Alembic setup to our existing database configuration, enhancing our database management capabilities. Alembic is a powerful tool for database schema versioning and migration, and this addition will streamline the process of maintaining and evolving our database schema.
Changes Made:
Integration of Alembic into our project's database setup.
Configuration files for Alembic migrations.
Initial database migration scripts.
Benefits:
Improved database version control: Alembic allows us to track changes to our database schema over time, making it easier to roll back changes if necessary and maintain a consistent schema across different environments.
Simplified database migrations: Alembic automates the process of creating and applying database migrations, reducing the risk of human error during schema updates.
Enhanced collaboration: With Alembic in place, multiple team members can work on database changes concurrently, ensuring smoother collaboration and reducing conflicts.
Todo
alembic upgrade head