jedcunningham commented on code in PR #48070:
URL: https://github.com/apache/airflow/pull/48070#discussion_r2013266070
##########
airflow-core/src/airflow/utils/db.py:
##########
@@ -1212,6 +1212,22 @@ def downgrade(*, to_revision, from_revision=None,
show_sql_only=False, session:
log.info("Attempting downgrade to revision %s", to_revision)
config = _get_alembic_config()
+ # Check if downgrade is less than 3.0.0 and requires that `ab_user` fab
table is present
+ if to_revision < _REVISION_HEADS_MAP["3.0.0"]:
Review Comment:
Isn't this just comparing the migration ids as strings?
--
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]