Merge branch 'oauth_table_fix_2_electricboogaloo' into 'master'

Update cps/ub.py

See merge request Jafner/calibre-web!3
This commit is contained in:
Joey Hafner 2022-07-12 06:33:22 +00:00
commit 0b77cfa05e

View File

@ -562,7 +562,7 @@ def add_missing_tables(engine, _session):
if oauth_support: if oauth_support:
if not engine.dialect.has_table(engine.connect(), "oauthProvider"): if not engine.dialect.has_table(engine.connect(), "oauthProvider"):
OAuthProvider.__table__.create(bind=engine) OAuthProvider.__table__.create(bind=engine)
if not engine.dialect.has_table(engine.connect(), "flask_dance_oauthconsumermixin"): if not engine.dialect.has_table(engine.connect(), "flask_dance_oauth"):
OAuth.__table__.create(bind=engine) OAuth.__table__.create(bind=engine)
if not engine.dialect.has_table(engine.connect(), "registration"): if not engine.dialect.has_table(engine.connect(), "registration"):