Can I Use Separate Alembic Migrations for Two Services Sharing the Same Database? #1522
Replies: 1 comment 3 replies
-
Hi, Are the two services using the same schema? if not configure alembic to look only at the relevant schema If the two services share both the schema and the table I would suggest you to rethink your schema. Or use a 3rd project to manage the common schema of both services. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two different services that are using the same database. I want to manage schema migrations separately for each service, using Alembic in their respective virtual environments. Is it possible to initialize and maintain separate Alembic migrations for both services while sharing the same database?
If it’s not feasible, what would be the recommended approach for managing migrations in this scenario?
Note that both alembic migrations should be independent.
Beta Was this translation helpful? Give feedback.
All reactions