Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions airflow-core/src/airflow/utils/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,14 @@ def _handle_fab_downgrade(*, session: Session) -> None:
fab_version,
)
return
connection = settings.engine.connect()
insp = inspect(connection)
if not fab_version and insp.has_table("ab_user"):
log.info(
"FAB migration version not found, but FAB tables exist. "
"FAB provider is not required for downgrade.",
)
return

# FAB db version is different or not found - require the FAB provider
try:
Expand Down