mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 09:12:38 +00:00
Fix for wrong create column at the right place
This commit is contained in:
parent
267300bb47
commit
5a1ffdad7c
1 changed files with 7 additions and 7 deletions
14
update_db.py
14
update_db.py
|
@ -56,13 +56,6 @@ if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
|||
else:
|
||||
c.execute('UPDATE table_settings_general SET minimum_score="0"')
|
||||
|
||||
try:
|
||||
c.execute('alter table table_settings_general add column "minimum_score_movie" "text"')
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
c.execute('UPDATE table_settings_general SET minimum_score_movie="0"')
|
||||
|
||||
try:
|
||||
c.execute('alter table table_settings_general add column "use_scenename" "text"')
|
||||
except:
|
||||
|
@ -171,6 +164,13 @@ if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
|||
else:
|
||||
c.execute('UPDATE table_settings_general SET page_size="25"')
|
||||
|
||||
try:
|
||||
c.execute('alter table table_settings_general add column "minimum_score_movie" "text"')
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
c.execute('UPDATE table_settings_general SET minimum_score_movie="0"')
|
||||
|
||||
try:
|
||||
c.execute('DELETE FROM table_settings_notifier WHERE rowid > 24') #Modify this if we add more notification provider
|
||||
rows = c.execute('SELECT name FROM table_settings_notifier WHERE name = "Discord"').fetchall()
|
||||
|
|
Loading…
Reference in a new issue