Skip to content

Commit

Permalink
Change db commands
Browse files Browse the repository at this point in the history
- history: show current revision by default
- upgrade: make revision a required argument

Signed-off-by: Mark90 <[email protected]>
  • Loading branch information
Mark90 committed Jun 11, 2024
1 parent 4fedae7 commit 32a1a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchestrator/cli/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 32a1a8f

Please sign in to comment.