summaryrefslogtreecommitdiffstats
path: root/api/database/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/database/__init__.py')
-rw-r--r--api/database/__init__.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/api/database/__init__.py b/api/database/__init__.py
index bc2708bc7..d7cf4f9c4 100644
--- a/api/database/__init__.py
+++ b/api/database/__init__.py
@@ -6,6 +6,7 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+from __future__ import absolute_import
import logging
from sqlalchemy import create_engine
@@ -21,9 +22,3 @@ db_session = scoped_session(sessionmaker(autocommit=False,
bind=engine))
Base = declarative_base()
Base.query = db_session.query_property()
-
-
-def init_db():
- subclasses = [subclass.__name__ for subclass in Base.__subclasses__()]
- logger.debug('Import models: %s', subclasses)
- Base.metadata.create_all(bind=engine)