potiuk commented on code in PR #35916:
URL: https://github.com/apache/airflow/pull/35916#discussion_r1407728976
##########
dev/breeze/src/airflow_breeze/commands/developer_commands.py:
##########
@@ -828,7 +825,15 @@ def enter_shell(**kwargs) -> RunCommandResult:
get_console().print(CHEATSHEET, style=CHEATSHEET_STYLE)
shell_params = ShellParams(**filter_out_none(**kwargs))
rebuild_or_pull_ci_image_if_needed(command_params=shell_params)
-
+ if shell_params.use_airflow_version:
+ # in case you use specific version of Airflow, you want to bring
airflow down automatically before
+ # Using it. This prevents the problem that if you have newer DB,
airflow will not know how
+ # to migrate to it and fail with "Can't locate revision identified by
'xxxx'".
+ get_console().print(
+ f"[warning]Bringing the project down as
{shell_params.use_airflow_version} "
+ f"airflow version is used and [/]"
Review Comment:
Right :). Fixed both.
--
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]