Command line utilities for database migrations.
marvin.cli.migrations
current
def current()
downgrade
def downgrade(revision: str = typer.Argument(..., help='Revision to downgrade to'), yes: bool = typer.Option(False, '--yes', '-y', help='Confirm the destructive operation without prompting'))
get_alembic_cfg
def get_alembic_cfg()
history
def history()
reset
def reset(yes: bool = typer.Option(False, '--yes', '-y', help='Confirm the destructive operation without prompting'))
revision
def revision(autogenerate: bool = typer.Option(False, '--autogenerate/--no-autogenerate', help='Automatically generate migrations based on schema changes'), message: str = typer.Option(None, '--message', '-m', help='Migration message'))
status
def status()
upgrade
def upgrade(revision: str = typer.Argument('head', help="Revision to upgrade to. Use 'head' for latest."))
cli