flask-migrate cannot drop table because other objects depend on it
问题 Problem applying just created migration (Added db.Model) through Flask-Migrate (SQLAlchemy) for PostgresSQL DB. The error itself: sqlalchemy.exc.InternalError: (psycopg2.InternalError) cannot drop table parameter_subtype because other objects depend on it Full error stack trace is: INFO [alembic.autogenerate.compare] Detected removed foreign key (event_id) (id) on table stage_has_event INFO [alembic.autogenerate.compare] Detected removed column 'stage_has_event.event_id' Generating /app