summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/SchemaUpdater
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Server/SchemaUpdater')
-rw-r--r--src/lib/Bcfg2/Server/SchemaUpdater/Routines.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/SchemaUpdater/Routines.py b/src/lib/Bcfg2/Server/SchemaUpdater/Routines.py
index 542a1302e..4fcf0e6bf 100644
--- a/src/lib/Bcfg2/Server/SchemaUpdater/Routines.py
+++ b/src/lib/Bcfg2/Server/SchemaUpdater/Routines.py
@@ -219,7 +219,7 @@ class RemoveColumns(RebuildTable):
logger.debug("Dropping column %s" % column)
- db_engine = Bcfg2.DATABASES['default']['ENGINE']
+ db_engine = Bcfg2.settings.DATABASES['default']['ENGINE']
if db_engine == 'django.db.backends.sqlite3':
_rebuild_sqlite_table(self.model)
else: