alembic_migration_fixtures/fixtures.py
def _run_db_schema_migrations(sqlalchemy_url: str, script_location: str) -> None:
    """Runs Alembic migrations to build the database schema.

    Args:
        sqlalchemy_url: Connection string of the database to migrate.
        script_location: Path to the folder where alembic scripts can be run.
    """
    config = alembic.config.Config()
    config.set_main_option("script_location", script_location)
    config.set_main_option("sqlalchemy.url", sqlalchemy_url)
    # heads means all migrations from all branches (in case there are split branches)
    command.upgrade(config, "heads")
Runs Alembic migrations to build the database schema.

    Args:
        sqlalchemy_url: Connection string of the database to migrate.
        script_location: Path to the folder where alembic scripts can be run.
    
Runs Alembic migrations to build the database schema.
Runs Alembic migrations to build the database schema .
def _run_db_schema_migrations(sqlalchemy_url: str, script_location: str) -> None:
    config = alembic.config.Config()
    config.set_main_option("script_location", script_location)
    config.set_main_option("sqlalchemy.url", sqlalchemy_url)
    command.upgrade(config, "heads")
def _run_db_schema_migrations ( sqlalchemy_url : str , script_location : str ) -> None : config = alembic . config . Config ( ) config . set_main_option ( "script_location" , script_location ) config . set_main_option ( "sqlalchemy.url" , sqlalchemy_url ) command . upgrade ( config , "heads" )
Runs Alembic migrations to build the database schema.
Runs Alembic migrations to build the database schema .
"""Runs Alembic migrations to build the database schema.

    Args:
        sqlalchemy_url: Connection string of the database to migrate.
        script_location: Path to the folder where alembic scripts can be run.
    """ # heads means all migrations from all branches (in case there are split branches)
sqlalchemy_url
str
Connection string of the database to migrate.
Connection string of the database to migrate .
script_location
str
Path to the folder where alembic scripts can be run.
Path to the folder where alembic scripts can be run .