ephraimbuddy commented on code in PR #51392:
URL: https://github.com/apache/airflow/pull/51392#discussion_r2204366777


##########
airflow-core/src/airflow/utils/db.py:
##########
@@ -1066,7 +1066,7 @@ def downgrade(*, to_revision, from_revision=None, 
show_sql_only=False, session:
             except ImportError:
                 log.warning("Import error occurred while importing 
FABDBManager. Skipping the check.")
                 return
-        if not inspect(settings.engine).has_table("ab_user") and not 
unitest_mode:
+        if not inspect(session.get_bind()).has_table("ab_user") and not 
unitest_mode:
             raise AirflowException(

Review Comment:
   In some of the tests, there's a setting that adds external db managers, 
probably the failing test is missing the setting



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to