Changes are not detected when I try to change the length of a field
I am using with PostgreSQL
For example:
field = db.Column(db.String(50)) to field = db.Column(db.String(100))
NFO [alembic.env] No changes in schema detected.
hi there-
have you set compare_type to True? also what backend are you using.
it's not without irony that literally three hours later issue #613 was posted by someone else entirely stating that they want to document that this length comparison does actually occur, even though it is documented as not occurring.
TLDR;
set compare_type=True https://alembic.sqlalchemy.org/en/latest/autogenerate.html#compare-types
the docs say that string lengths aren't compared, but this is a bug in the docs :)
hi there-
have you set compare_type to True? also what backend are you using.
it's not without irony that literally three hours later issue #613 was posted by someone else entirely stating that they want to document that this length comparison does actually occur, even though it is documented as not occurring.
TLDR;
- set compare_type=True https://alembic.sqlalchemy.org/en/latest/autogenerate.html#compare-types
- the docs say that string lengths aren't compared, but this is a bug in the docs :)
Edit the question
it works with compare_type