mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Upgrade existing DB for transcode decision
This commit is contained in:
parent
1e3a347782
commit
d80919140b
1 changed files with 15 additions and 0 deletions
|
@ -1733,6 +1733,21 @@ def dbcheck():
|
||||||
'ALTER TABLE notifiers ADD COLUMN custom_conditions_logic TEXT'
|
'ALTER TABLE notifiers ADD COLUMN custom_conditions_logic TEXT'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Upgrade notifiers table from earlier versions
|
||||||
|
try:
|
||||||
|
c_db.execute('SELECT on_change FROM notifiers')
|
||||||
|
except sqlite3.OperationalError:
|
||||||
|
logger.debug(u"Altering database. Updating database table notifiers.")
|
||||||
|
c_db.execute(
|
||||||
|
'ALTER TABLE notifiers ADD COLUMN on_change INTEGER DEFAULT 0'
|
||||||
|
)
|
||||||
|
c_db.execute(
|
||||||
|
'ALTER TABLE notifiers ADD COLUMN on_change_subject TEXT'
|
||||||
|
)
|
||||||
|
c_db.execute(
|
||||||
|
'ALTER TABLE notifiers ADD COLUMN on_change_body TEXT'
|
||||||
|
)
|
||||||
|
|
||||||
# Upgrade tvmaze_lookup table from earlier versions
|
# Upgrade tvmaze_lookup table from earlier versions
|
||||||
try:
|
try:
|
||||||
c_db.execute('SELECT rating_key FROM tvmaze_lookup')
|
c_db.execute('SELECT rating_key FROM tvmaze_lookup')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue