返回老旧博客

flask 数据迁移

1.创建迁移环境 

flask db init

2.生成迁移脚本

flask db migrate -m "add note timestamp" 

3.更新数据库 

flask db upgrade

评论 · 0

还没有评论。