Because south knows nothing about the relation between our custom
database backends (afe, afe_sqlite) and the database that is actually
being used underneath.

Signed-off-by: Cleber Rosa <[email protected]>
---
 frontend/settings.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/frontend/settings.py b/frontend/settings.py
index eee46a2..b361731 100644
--- a/frontend/settings.py
+++ b/frontend/settings.py
@@ -40,6 +40,15 @@ if AUTOTEST_DEFAULT['READONLY_USER'] != 
AUTOTEST_DEFAULT['USER']:
 else:
     AUTOTEST_DEFAULT['READONLY_PASSWORD'] = AUTOTEST_DEFAULT['PASSWORD']
 
+SOUTH_BACKENDS = {
+    'autotest.frontend.db.backends.afe': 'south.db.mysql',
+    'autotest.frontend.db.backends.afe_sqlite': 'south.db.sqlite3'
+}
+
+SOUTH_DATABASE_ADAPTERS = {
+    'default': SOUTH_BACKENDS[AUTOTEST_DEFAULT['ENGINE']]
+}
+
 DATABASES = {'default': AUTOTEST_DEFAULT}
 
 # prefix applied to all URLs - useful if requests are coming through apache,
-- 
1.7.11.7

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to