uranusjr commented on a change in pull request #21962:
URL: https://github.com/apache/airflow/pull/21962#discussion_r818565869



##########
File path: airflow/utils/db.py
##########
@@ -1074,9 +1073,10 @@ def _validate_version_range(command, config, 
version_range):
         raise AirflowException(
             'MSSQL is not supported for offline migration in Airflow versions 
less than 2.2.0.'
         )
-    revision = f"{REVISION_HEADS_MAP[lower]}:{REVISION_HEADS_MAP[upper]}"
+    _lower, _upper = REVISION_HEADS_MAP[lower], REVISION_HEADS_MAP[upper]
+    revision = f"{_lower}:{_upper}"
     try:
-        command.history(config, rev_range=revision)
+        list(script_.revision_map.iterate_revisions(_upper, _lower))

Review comment:
       I see. Perhaps add a comment to describe what this line does then? (Run 
through the revisions to check they all execute correctly?)




-- 
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