Skip to content

Specify a "version_num" for different schemas? #940

Answered by CaselIT
LoicH asked this question in Usage Questions
Discussion options

You must be logged in to vote

Hi,

I think that's the defualt behaviour of alembic, just configure the sqlalchemy connection to point to the right schema when passed to alembic.
In your example you seem to want to use multiple alembic.ini files, so it should not require special consideration when running alembic like in this case https://alembic.sqlalchemy.org/en/latest/cookbook.html#multiple-environments
For more customization on the autogenerate, there is this section of the docs https://alembic.sqlalchemy.org/en/latest/autogenerate.html?highlight=schema#controlling-what-to-be-autogenerated

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by LoicH
Comment options

You must be logged in to vote
6 replies
@LoicH
Comment options

@CaselIT
Comment options

@LoicH
Comment options

@CaselIT
Comment options

@LoicH
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants