mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 16:52:06 +00:00
Initialize username and password value for providers at column creation
This commit is contained in:
parent
a10574f805
commit
efcb4455ab
1 changed files with 2 additions and 0 deletions
|
@ -10,11 +10,13 @@ if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
||||||
# Execute table modification
|
# Execute table modification
|
||||||
try:
|
try:
|
||||||
c.execute('alter table table_settings_providers add column "username" "text"')
|
c.execute('alter table table_settings_providers add column "username" "text"')
|
||||||
|
c.execute('UPDATE table_settings_providers SET username=""')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
c.execute('alter table table_settings_providers add column "password" "text"')
|
c.execute('alter table table_settings_providers add column "password" "text"')
|
||||||
|
c.execute('UPDATE table_settings_providers SET password=""')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue