I have a multi-schema DB structure.I am using Flask-Migrate, Flask-Script and alembic to manage migrations.Is there a way to upgrade and perform migrations for only one single schema?
Thank you
I have a multi-schema DB structure.I am using Flask-Migrate, Flask-Script and alembic to manage migrations.Is there a way to upgrade and perform migrations for only one single schema?
Thank you
Copyright © 2021 Jogjafile Inc.
You have to filter the imported object to select only ones contained in the wanted schema with:
and then:
More info: https://alembic.sqlalchemy.org/en/latest/api/runtime.html#alembic.runtime.environment.EnvironmentContext.configure.params.include_name
Personally I don't like to change the alembic
env.pyso I give those parameters as the Flask-Migrate initialization :