jedcunningham commented on a change in pull request #20962:
URL: https://github.com/apache/airflow/pull/20962#discussion_r804025901
##########
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:
I'm not sure this is right. e.g. 2.2.1 -> 2.2.3 shouldn't show this
message. Same with 2.1.2 -> 2.2.0.
--
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]