Skip to content

Does alembic have repeatable migrations ? #950

Discussion options

You must be logged in to vote

this is not a first class feature of Alembic but you can certainly make yourself a set of Python files that will invoke a series of "CREATE OR REPLACE" statements after migrations are updated. an approach towards SPs, triggers etc that's something like this is described at https://alembic.sqlalchemy.org/en/latest/cookbook.html#replaceable-objects. A third party library alembic-utils provides a full , supported version of this pattern.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gerazenobi
Comment options

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