oslo_db.sqlalchemy.migration
Module¶oslo_db.sqlalchemy.migration.
db_sync
(engine, abs_path, version=None, init_version=0, sanity_check=True)¶Upgrade or downgrade a database.
Function runs the upgrade() or downgrade() functions in change scripts.
Parameters: |
|
---|
oslo_db.sqlalchemy.migration.
db_version
(engine, abs_path, init_version)¶Show the current version of the repository.
Parameters: |
|
---|
oslo_db.sqlalchemy.migration.
db_version_control
(engine, abs_path, version=None)¶Mark a database as under this repository’s version control.
Once a database is under version control, schema changes should only be done via change scripts in this repository.
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.