Update cps/ub.py
This commit is contained in:
parent
32bc911de4
commit
aa64a6ab23
@ -559,6 +559,12 @@ def add_missing_tables(engine, _session):
|
|||||||
ArchivedBook.__table__.create(bind=engine)
|
ArchivedBook.__table__.create(bind=engine)
|
||||||
if not engine.dialect.has_table(engine.connect(), "thumbnail"):
|
if not engine.dialect.has_table(engine.connect(), "thumbnail"):
|
||||||
Thumbnail.__table__.create(bind=engine)
|
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"):
|
if not engine.dialect.has_table(engine.connect(), "registration"):
|
||||||
Registration.__table__.create(bind=engine)
|
Registration.__table__.create(bind=engine)
|
||||||
with engine.connect() as conn:
|
with engine.connect() as conn:
|
||||||
|
Loading…
Reference in New Issue
Block a user