python orm数据库之 SQLAlchemy 版本迁移的使用

原文链接:

https://www.jianshu.com/p/d878cec71753

步骤:

1.  pip install alembic

2.迁移命令:

1.alembic revision --autogenerate -m "create_user_table"

2.alembic upgrade head

记录坑一:

 数据库链接得指定charset=utf-8,否则报unicodeError

原文地址:https://www.cnblogs.com/Neotester/p/14859666.html