Files
deb-python-oslo.db/oslo_db/sqlalchemy/migration_cli
Boris Bobrov 77e4958f25 Upgrade and downgrade based on revision existence
Before there was no way to upgrade to a specific revision, because the
revision passed to the manager was passed to all the plugins, some of
which failed to process it.

Add a new method to every plugin `has_revision`, which returns
whether the plugin has the revision. Use it in upgrade and
downgrade.

Change-Id: I89b02d7ad479da6bff3c492c88edfee9c19abc22
Closes-Bug: 1474067
2015-09-04 08:42:56 +00:00
..

This module could be used either for: 1. Smooth transition from migrate tool to alembic 2. As standalone alembic tool

Core points: 1. Upgrade/downgrade database with usage of alembic/migrate migrations or both 2. Compatibility with oslo.config 3. The way to autogenerate new revisions or stamps