Skip to content

Commit c70924e

Browse files
committed
Change db commands
- history: show current revision by default - upgrade: make revision a required argument Signed-off-by: Mark90 <[email protected]>
1 parent b668506 commit c70924e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchestrator/cli/database.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def merge(
152152

153153

154154
@app.command()
155-
def upgrade(revision: str = typer.Argument(default=None, help="Rev id to upgrade to")) -> None:
155+
def upgrade(revision: str = typer.Argument(help="Rev id to upgrade to")) -> None:
156156
"""The `upgrade` command will upgrade the database to the specified revision.
157157
158158
Args:
@@ -228,7 +228,7 @@ def revision(
228228
@app.command()
229229
def history(
230230
verbose: bool = typer.Option(False, "--verbose", "-v", help="Verbose output"),
231-
indicate_current: bool = typer.Option(False, "--current", "-c", help="Indicate current revision"),
231+
indicate_current: bool = typer.Option(True, "--current", "-c", help="Indicate current revision"),
232232
) -> None:
233233
"""The `history` command lists Alembic revision history/changeset scripts in chronological order.
234234

0 commit comments

Comments
 (0)