From aa64a6ab238f105e678a467f8775d2dcc5a01992 Mon Sep 17 00:00:00 2001 From: Ace Archer Date: Tue, 12 Jul 2022 06:21:23 +0000 Subject: [PATCH] Update cps/ub.py --- cps/ub.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cps/ub.py b/cps/ub.py index 2a6ae89b..75648a6e 100644 --- a/cps/ub.py +++ b/cps/ub.py @@ -559,6 +559,12 @@ def add_missing_tables(engine, _session): ArchivedBook.__table__.create(bind=engine) if not engine.dialect.has_table(engine.connect(), "thumbnail"): Thumbnail.__table__.create(bind=engine) + if oauth_support: + if not engine.dialect.has_table(engine.connect(), "oauthProvider"): + OAuthProvider.__table__.create(bind=engine) + if not engine.dialect.has_table(engine.connect(), "flask_dance_oauthconsumermixin"): + OAuth.__table__.create(bind=engine) + if not engine.dialect.has_table(engine.connect(), "registration"): Registration.__table__.create(bind=engine) with engine.connect() as conn: