mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Fix updating cron default value in newsletter table
This commit is contained in:
parent
d482177342
commit
ec99a2f3d9
1 changed files with 1 additions and 1 deletions
|
@ -2047,7 +2047,7 @@ def dbcheck():
|
|||
# Upgrade newsletters table from earlier versions
|
||||
try:
|
||||
result = c_db.execute('SELECT SQL FROM sqlite_master WHERE type="table" AND name="newsletters"').fetchone()
|
||||
if '"cron"\tTEXT NOT NULL DEFAULT "0 0 * * 0"' in result[0]:
|
||||
if 'TEXT NOT NULL DEFAULT "0 0 * * 0"' in result[0]:
|
||||
logger.debug("Altering database. Updating default cron value in newsletters table.")
|
||||
c_db.execute(
|
||||
'CREATE TABLE newsletters_temp (id INTEGER PRIMARY KEY AUTOINCREMENT, '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue