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
) を削除する解決策はありますか?