我想将 flask peewee 用作关系数据库 (MySQL) 的 ORM,但我的问题是模型结构的变化......比如为模型添加新属性(这意味着数据库中的列)。 我想知道我是否可以在不手动编写 SQL 的情况下自动执行此操作?
最佳答案
看起来 Peewee 模块确实支持迁移。
http://peewee.readthedocs.org/en/latest/peewee/playhouse.html#schema-migrations
关于python - flask-peewee 可以迁移吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24906683/