Bases: MigrationExtensionBase
Extension to provide alembic features.
engine (sqlalchemy.engine.Engine) – SQLAlchemy engine instance for a given database
migration_config (dict) – Stores specific configuration for migrations
Used for downgrading database.
version (string) – Desired database version
Used for availability verification of a plugin.
bool
Checks whether the repo contains a revision
rev_id – Revision to check
Whether the revision is in the repo
bool
Creates template for migration.
message (string) – Text that will be used for migration title
autogenerate (bool) – If True - generates diff based on current database state
Stamps database with provided revision.
revision (string) – Should match one from repository or head - to stamp database with most recent revision
Used for upgrading database.
version (string) – Desired database version
Current database version.
Databse version
string
Bases: object
Used for downgrading database.
version (string) – Desired database version
Used for availability verification of a plugin.
bool
Checks whether the repo contains a revision
rev_id – Revision to check
Whether the revision is in the repo
bool
Used to generate migration script.
In migration engines that support this feature, it should generate new migration script.
Accept arbitrary set of arguments.
Stamps database based on plugin features.
Accept arbitrary set of arguments.
Used for upgrading database.
version (string) – Desired database version
Current database version.
Databse version
string
Bases: MigrationExtensionBase
Extension to provide sqlalchemy-migrate features.
migration_config (dict) – Stores specific configuration for migrations
Used for downgrading database.
version (string) – Desired database version
Used for availability verification of a plugin.
bool
Checks whether the repo contains a revision
rev_id – Revision to check
Whether the revision is in the repo
bool
Used for upgrading database.
version (string) – Desired database version
Current database version.
Databse version
string
Bases: object
Downgrade database with available backends.
Generate template or autogenerated revision.
Create stamp for a given revision.
Upgrade database with all available backends.
Return last version of db.
Used for EnabledExtensionManager.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.