From efcb4455abb18eeff21a34b4009d7688db5eea4d Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 7 Dec 2017 20:31:17 -0500 Subject: [PATCH] Initialize username and password value for providers at column creation --- update_db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update_db.py b/update_db.py index a4e1b01ec..2ac69dd92 100644 --- a/update_db.py +++ b/update_db.py @@ -10,11 +10,13 @@ if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db')) # Execute table modification try: c.execute('alter table table_settings_providers add column "username" "text"') + c.execute('UPDATE table_settings_providers SET username=""') except: pass try: c.execute('alter table table_settings_providers add column "password" "text"') + c.execute('UPDATE table_settings_providers SET password=""') except: pass