flask-migrate 坑
- 字段长度更新会提示
No changes in schema detected.
解决办法:初始化Migrate的时候增加属性compare_type为True
Migrate(app=app, db=db,render_as_batch = True,compare_type = True)
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
No changes in schema detected.解决办法:初始化Migrate的时候增加属性compare_type为True
Migrate(app=app, db=db,render_as_batch = True,compare_type = True)