Update default base database to be V2

Fixes bug 1070353

Change-Id: Ie9271dd1ef2597ba74a0fea51ecf151ae2e8f7dd
This commit is contained in:
Gary Kotton 2012-10-19 04:16:23 +00:00
parent 12aa05c7df
commit 9caf56c37a
3 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ LOG = logging.getLogger(__name__)
_ENGINE = None
_MAKER = None
BASE = model_base.BASE
BASE = model_base.BASEV2
class MySQLPingListener(object):

View File

@ -60,5 +60,4 @@ class QuantumBaseV2(QuantumBase):
return cls.__name__.lower() + 's'
BASE = declarative.declarative_base(cls=QuantumBase)
BASEV2 = declarative.declarative_base(cls=QuantumBaseV2)

View File

@ -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()