mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 20:39:59 +00:00
commit
4437d7376d
@ -751,7 +751,7 @@ def migrate_Database():
|
|||||||
session.query(exists().where(Settings.config_ldap_schema)).scalar()
|
session.query(exists().where(Settings.config_ldap_schema)).scalar()
|
||||||
except exc.OperationalError:
|
except exc.OperationalError:
|
||||||
conn = engine.connect()
|
conn = engine.connect()
|
||||||
conn.execute("ALTER TABLE Settings ADD column `config_ldap_schema ` String DEFAULT ''")
|
conn.execute("ALTER TABLE Settings ADD column `config_ldap_schema` String DEFAULT ''")
|
||||||
session.commit()
|
session.commit()
|
||||||
try:
|
try:
|
||||||
session.query(exists().where(Settings.config_ldap_serv_username)).scalar()
|
session.query(exists().where(Settings.config_ldap_serv_username)).scalar()
|
||||||
@ -770,7 +770,7 @@ def migrate_Database():
|
|||||||
session.query(exists().where(Settings.config_ldap_use_tls)).scalar()
|
session.query(exists().where(Settings.config_ldap_use_tls)).scalar()
|
||||||
except exc.OperationalError:
|
except exc.OperationalError:
|
||||||
conn = engine.connect()
|
conn = engine.connect()
|
||||||
conn.execute("ALTER TABLE Settings ADD column `cconfig_ldap_use_tls` INTEGER DEFAULT 0")
|
conn.execute("ALTER TABLE Settings ADD column `config_ldap_use_tls` INTEGER DEFAULT 0")
|
||||||
session.commit()
|
session.commit()
|
||||||
try:
|
try:
|
||||||
session.query(exists().where(Settings.config_ldap_require_cert)).scalar()
|
session.query(exists().where(Settings.config_ldap_require_cert)).scalar()
|
||||||
|
Loading…
Reference in New Issue
Block a user