From 00372cccb9365aa6cdd89bc22c4236eb800cc2ea Mon Sep 17 00:00:00 2001 From: Jam <1347620+JamsRepos@users.noreply.github.com> Date: Wed, 1 May 2024 22:51:50 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Change=20live=5Ftv=20to?= =?UTF-8?q?=20a=20boolean=20through=20the=20migration=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/migrator/migrations/2024-04-30_16-44-17.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wizarr-backend/wizarr_backend/app/migrator/migrations/2024-04-30_16-44-17.py b/apps/wizarr-backend/wizarr_backend/app/migrator/migrations/2024-04-30_16-44-17.py index e8c976f6..c1352b21 100644 --- a/apps/wizarr-backend/wizarr_backend/app/migrator/migrations/2024-04-30_16-44-17.py +++ b/apps/wizarr-backend/wizarr_backend/app/migrator/migrations/2024-04-30_16-44-17.py @@ -26,6 +26,8 @@ def run(): if "hide_user" not in column_names: db.execute_sql("ALTER TABLE invitations ADD COLUMN hide_user BOOLEAN DEFAULT 1") + elif "live_tv" in column_names: + db.execute_sql("ALTER TABLE invitations ALTER COLUMN live_tv BOOLEAN;") else: print("Column hide_user already exists")