Skip to content

Confused with alembic + SQLAlchemy Base.metadata #960

Discussion options

You must be logged in to vote

I suggest reading the fist sections of this documentation page https://alembic.sqlalchemy.org/en/latest/autogenerate.html#auto-generating-migrations

TLDR: it compares what's in the metadata with was is in the db and writes the difference in the generated revision

Replies: 1 comment 6 replies

Comment options

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

@kernelguardian
Comment options

@CaselIT
Comment options

@kernelguardian
Comment options

@CaselIT
Comment options

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