summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorAndy Smith <code@term.ie>2011-01-19 01:39:41 +0000
committerTarmac <>2011-01-19 01:39:41 +0000
commit4eed55b46cfaba58b5d344f0ca96eba090d8bd34 (patch)
treebe28644743097fd8228134f31be9f3dc683db7c8 /nova/tests
parent3b874805e2f7de43fd143f2b414e40ceef70e0c4 (diff)
parent7f352a72333e94c642d8288638c73a166cfb2943 (diff)
Allows moving from the Austin-style db to the Bexar-style.
Prevents the db from being created automatically when services run. Adds nova-manage db sync and nova manage db version to bring the db up-to-date and to check the current version. Must be run with the same privileges as the services who will access the database (or you need to chmod the db afterwards if sqlite)
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/tests/__init__.py b/nova/tests/__init__.py
index 8dc87d0e2..592d5bea9 100644
--- a/nova/tests/__init__.py
+++ b/nova/tests/__init__.py
@@ -34,3 +34,8 @@
# The code below enables nosetests to work with i18n _() blocks
import __builtin__
setattr(__builtin__, '_', lambda x: x)
+
+
+def setup():
+ from nova.db import migration
+ migration.db_sync()