assembl.lib.migration module

Basic infrastructure for alembic migration

assembl.lib.migration.bootstrap_db(config_uri, with_migration=True)[source]

Bring a blank database to a functional state.

assembl.lib.migration.ensure_db_version(config_uri, session_maker)[source]

Exit if database is not up-to-date.

assembl.lib.migration.includeme(config)[source]

Initialize Alembic-related stuff at app start-up time.

assembl.lib.migration.is_migration_script()[source]

Determine weather the current process is a migration script.