Update default base database to be V2
Fixes bug 1070353 Change-Id: Ie9271dd1ef2597ba74a0fea51ecf151ae2e8f7dd
This commit is contained in:
parent
984f19381e
commit
4088a65cf4
@ -32,7 +32,7 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
_ENGINE = None
|
||||
_MAKER = None
|
||||
BASE = model_base.BASE
|
||||
BASE = model_base.BASEV2
|
||||
|
||||
|
||||
class MySQLPingListener(object):
|
||||
|
@ -60,5 +60,4 @@ class QuantumBaseV2(QuantumBase):
|
||||
return cls.__name__.lower() + 's'
|
||||
|
||||
|
||||
BASE = declarative.declarative_base(cls=QuantumBase)
|
||||
BASEV2 = declarative.declarative_base(cls=QuantumBaseV2)
|
||||
|
@ -114,6 +114,7 @@ class QuantumDbPluginV2TestCase(unittest2.TestCase):
|
||||
super(QuantumDbPluginV2TestCase, self).tearDown()
|
||||
# NOTE(jkoelker) for a 'pluggable' framework, Quantum sure
|
||||
# doesn't like when the plugin changes ;)
|
||||
db.clear_db()
|
||||
db._ENGINE = None
|
||||
db._MAKER = None
|
||||
cfg.CONF.reset()
|
||||
|
Loading…
x
Reference in New Issue
Block a user