我有 Flask-migrate 的烧瓶应用程序。运行db upgrade
创建下表:
List of relations
Schema | Name | Type | Owner
-------+-----------------+-------+----------
public | alembic_version | table | postgres
public | operations | table | postgres
public | rule_values | table | postgres
public | rules | table | postgres
public | shares | table | postgres
但是当我删除所有表时:
db = SQLAlchemy(app)
db.drop_all()
我懂了:
List of relations
Schema | Name | Type | Owner
-------+-----------------+-------+----------
public | alembic_version | table | postgres
是否有删除所有表(甚至alembic_version
)的解决方案?