Marking downgrade as deprecated
In the process of removing downgrades we first need to mark it as deprecated. Change-Id: I8d148abbc81ea76ff8eb538876cb4f5991bcabea Partially-implements: bp remove-sql-schema-downgrades
This commit is contained in:
parent
64beaaa820
commit
02f7f7cd16
@ -22,6 +22,7 @@ gettext.install('trove', unicode=1)
|
||||
|
||||
|
||||
from oslo_log import log as logging
|
||||
from oslo_log.versionutils import deprecated
|
||||
|
||||
from trove.common import cfg
|
||||
from trove.common import exception
|
||||
@ -46,6 +47,7 @@ class Commands(object):
|
||||
def db_upgrade(self, version=None, repo_path=None):
|
||||
self.db_api.db_upgrade(CONF, version, repo_path=repo_path)
|
||||
|
||||
@deprecated(as_of=deprecated.MITAKA)
|
||||
def db_downgrade(self, version, repo_path=None):
|
||||
self.db_api.db_downgrade(CONF, version, repo_path=repo_path)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user