potiuk commented on a change in pull request #20962:
URL: https://github.com/apache/airflow/pull/20962#discussion_r804108700



##########
File path: airflow/utils/db.py
##########
@@ -1022,8 +1026,24 @@ def _validate_version_range(command, config, 
version_range):
             'Please provide Airflow version range with the format 
"old_version:new_version"'
         )
     lower, upper = version_range.split(':')
+
     if not REVISION_HEADS_MAP.get(lower) or not REVISION_HEADS_MAP.get(upper):
-        raise AirflowException('Please provide valid Airflow versions that has 
migrations between them.')
+        raise AirflowException('Please provide valid Airflow versions above 
2.0.0.')
+    if REVISION_HEADS_MAP.get(lower) == 'No Migration' or 
REVISION_HEADS_MAP.get(upper) == 'No Migration':

Review comment:
       Yeah. I think they should repeat the hash from 2.2.0 and the "cat" 
message should be only printed if hash(lower) == hash(upper).




-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to