INNER CODE UNIT · Python
add_migration_commands
litestar-org/advanced-alchemy · advanced_alchemy/cli.py:72
def add_migration_commands(database_group: Optional["Group"] = None) -> "Group": # noqa: C901, PLR0915
"""Add migration commands to the database group.
Args:
database_group: The database group to add the commands to.
Raises:
MissingDependencyError: If the `click` package is not installed.
Returns:
The database group with the migration commands added.
"""
from rich import get_console
from advanced_alchemy.utils.cli_tools import click
console = get_console()