summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/auth/ldap/auth_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/auth_cache.py b/pykolab/auth/ldap/auth_cache.py
index cd46a4c..2449cae 100644
--- a/pykolab/auth/ldap/auth_cache.py
+++ b/pykolab/auth/ldap/auth_cache.py
@@ -169,7 +169,7 @@ def init_db(reinit=False):
echo = conf.debuglevel > 8
engine = create_engine(db_uri, echo=echo)
- metadata.create_all(engine)
+ DeclarativeBase.metadata.create_all(engine)
Session = sessionmaker(bind=engine)
db = Session()