oslo_db.sqlalchemy.migration_cli.ext_base Module¶oslo_db.sqlalchemy.migration_cli.ext_base.MigrationExtensionBase¶Bases: object
downgrade(version)¶Used for downgrading database.
| Parameters: | version (string) – Desired database version |
|---|
enabled¶Used for availability verification of a plugin.
| Return type: | bool |
|---|
has_revision(rev_id)¶Checks whether the repo contains a revision
| Parameters: | rev_id – Revision to check |
|---|---|
| Returns: | Whether the revision is in the repo |
| Return type: | bool |
order = 0¶revision(*args, **kwargs)¶Used to generate migration script.
In migration engines that support this feature, it should generate new migration script.
Accept arbitrary set of arguments.
stamp(*args, **kwargs)¶Stamps database based on plugin features.
Accept arbitrary set of arguments.
upgrade(version)¶Used for upgrading database.
| Parameters: | version (string) – Desired database version |
|---|
version()¶Current database version.
| Returns: | Databse version |
|---|---|
| Return type: | string |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.