From 32a1a8fce980159f7927245ac3d865c056d6d9b6 Mon Sep 17 00:00:00 2001 From: Mark90 Date: Mon, 10 Jun 2024 13:11:42 +0200 Subject: [PATCH] Change db commands - history: show current revision by default - upgrade: make revision a required argument Signed-off-by: Mark90 --- orchestrator/cli/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestrator/cli/database.py b/orchestrator/cli/database.py index 9573935ce..8cd0a6813 100644 --- a/orchestrator/cli/database.py +++ b/orchestrator/cli/database.py @@ -152,7 +152,7 @@ def merge( @app.command() -def upgrade(revision: str = typer.Argument(default=None, help="Rev id to upgrade to")) -> None: +def upgrade(revision: str = typer.Argument(help="Rev id to upgrade to")) -> None: """The `upgrade` command will upgrade the database to the specified revision. Args: @@ -228,7 +228,7 @@ def revision( @app.command() def history( verbose: bool = typer.Option(False, "--verbose", "-v", help="Verbose output"), - indicate_current: bool = typer.Option(False, "--current", "-c", help="Indicate current revision"), + indicate_current: bool = typer.Option(True, "--current", "-c", help="Indicate current revision"), ) -> None: """The `history` command lists Alembic revision history/changeset scripts in chronological order.