Skip to content

How to run migrations from code with new 1.16 version? #1674

Discussion options

You must be logged in to vote

OK can you clarify that your code before you tried to use pyproject.toml worked fine? that is, alembic 1.16 should introduce no regressions to existing code. that's my most immediate concern, that you upgraded to alembic and your code without any changes didn't break.

then, when you wanted to change to use pyproject.toml, that's fine, but the docs probably dont make clear that you need to send it as a separate keyword argument:

 config= Config(toml_file="pyproject.toml")

the keyword arg is there at https://alembic.sqlalchemy.org/en/latest/api/config.html#alembic.config.Config however isn't documented so that should be added. I think you do have to indicate it explicitly though. will upda…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zzzeek
Comment options

Answer selected by bahkadomos
@bahkadomos
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