Looks like I found the answer on reddit’s /r/flask.
Comment
by u/executex from discussion Alembic autogenerate column changes?
in flask
Just add “compare_type=True” to context.configure() parameters inside your env.py’s “run_migrations_online” function.
context.configure(
connection=connection,
target_metadata=target_metadata,
compare_type=True
)