kaxil commented on a change in pull request #20838:
URL: https://github.com/apache/airflow/pull/20838#discussion_r811538422
##########
File path: airflow/cli/commands/db_command.py
##########
@@ -94,3 +95,26 @@ def shell(args):
def check(_):
"""Runs a check command that checks if db is available."""
db.check()
+
+
+@cli_utils.action_cli(check_db=False)
+def clean(args):
+ """Upgrades the metadata database"""
+ print(f"DB: {settings.engine.url!r}")
+ db.upgradedb()
Review comment:
This seems to be some mistake. The function name is `clean` but
docstring and code is about upgrading DB,
--
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]