mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-10 21:24:15 +00:00
- Bugfix Migration of database for config_log_level
- Bugfix Updater deleting temporary sourcefolder
This commit is contained in:
parent
c45968a1ed
commit
f21c65ac50
@ -368,4 +368,4 @@ def update_source(source,destination):
|
|||||||
os.remove(item_path)
|
os.remove(item_path)
|
||||||
except:
|
except:
|
||||||
print("Could not remove:"+item_path)
|
print("Could not remove:"+item_path)
|
||||||
#shutil.rmtree(source, ignore_errors=True)
|
shutil.rmtree(source, ignore_errors=True)
|
||||||
|
@ -325,7 +325,7 @@ def migrate_Database():
|
|||||||
conn.execute("ALTER TABLE Settings ADD column `config_random_books` INTEGER DEFAULT 4")
|
conn.execute("ALTER TABLE Settings ADD column `config_random_books` INTEGER DEFAULT 4")
|
||||||
conn.execute("ALTER TABLE Settings ADD column `config_title_regex` String DEFAULT "
|
conn.execute("ALTER TABLE Settings ADD column `config_title_regex` String DEFAULT "
|
||||||
"'^(A|The|An|Der|Die|Das|Den|Ein|Eine|Einen|Dem|Des|Einem|Eines)\s+'")
|
"'^(A|The|An|Der|Die|Das|Den|Ein|Eine|Einen|Dem|Des|Einem|Eines)\s+'")
|
||||||
conn.execute("ALTER TABLE Settings ADD column `config_log_level` SmallInteger DEFAULT '" + logging.INFO + "'")
|
conn.execute("ALTER TABLE Settings ADD column `config_log_level` SmallInteger DEFAULT " + str(logging.INFO))
|
||||||
conn.execute("ALTER TABLE Settings ADD column `config_uploading` SmallInteger DEFAULT 0")
|
conn.execute("ALTER TABLE Settings ADD column `config_uploading` SmallInteger DEFAULT 0")
|
||||||
conn.execute("ALTER TABLE Settings ADD column `config_anonbrowse` SmallInteger DEFAULT 0")
|
conn.execute("ALTER TABLE Settings ADD column `config_anonbrowse` SmallInteger DEFAULT 0")
|
||||||
conn.execute("ALTER TABLE Settings ADD column `config_public_reg` SmallInteger DEFAULT 0")
|
conn.execute("ALTER TABLE Settings ADD column `config_public_reg` SmallInteger DEFAULT 0")
|
||||||
|
Loading…
Reference in New Issue
Block a user