cinder.db.migration module

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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.