cinder.db.migration module

Database setup and migration commands.

db_sync(version=None, engine=None)

Migrate the database to version or the most recent version.

We’re currently straddling two migration systems, sqlalchemy-migrate and alembic. This handles both by ensuring we switch from one to the other at the appropriate moment.

db_version()

Get database version.