flask-migrate 坑

  1. 字段长度更新会提示 No changes in schema detected.

解决办法:初始化Migrate的时候增加属性compare_type为True

Migrate(app=app, db=db,render_as_batch = True,compare_type = True)

最后更新于

这有帮助吗?