我已经将我的模型类从 autoincrement=False 更改为 autoincrement=True 但是 Flask Migrate 包没有检测到更改以应用于数据库?我怎样才能解决这个问题?
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, unique=True, primary_key=True, autoincrement=True)
迁移命令日志:
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.env] No changes in schema detected.