summaryrefslogtreecommitdiff
path: root/oslo_db
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2020-10-30 10:27:57 +0000
committerStephen Finucane <stephenfin@redhat.com>2020-10-30 10:40:24 +0000
commit642dac165fb1649e01e8370acbc2b709299166c6 (patch)
treeb37aa174c8c6ad72826f93591c4410a2f00eec03 /oslo_db
parentfc855875236fd3bf760237fc64092f4a9d864fcb (diff)
downloadoslo-db-642dac165fb1649e01e8370acbc2b709299166c6.tar.gz
Deprecate the 'oslo_db.sqlalchemy.migration_cli' module
This API allowed users to abstract the differences between sqlalchemy-migrate and alembic. However, no one is using it for that and its continued existence necessitates continued support for sqlalchemy-migrate. Deprecate it now and encourage the odd user to switch to alembic directly. Change-Id: Ia5979369f23b38a2c7307f4112651a8bedb45c01 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'oslo_db')
-rw-r--r--oslo_db/sqlalchemy/migration_cli/manager.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/oslo_db/sqlalchemy/migration_cli/manager.py b/oslo_db/sqlalchemy/migration_cli/manager.py
index 4268331..812d4bc 100644
--- a/oslo_db/sqlalchemy/migration_cli/manager.py
+++ b/oslo_db/sqlalchemy/migration_cli/manager.py
@@ -10,6 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
+from debtcollector import removals
import sqlalchemy
from stevedore import enabled
@@ -24,6 +25,12 @@ def check_plugin_enabled(ext):
return ext.obj.enabled
+@removals.remove(
+ message='Support for sqlalchemy-migrate and with it the migration manager '
+ 'is deprecated for removal; consider migrating to and using alembic '
+ 'directly',
+ version='8.3.0'
+)
class MigrationManager(object):
def __init__(self, migration_config, engine=None):