Skip to content

Commit

Permalink
fix: 🐛 Change live_tv to a boolean through the migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsRepos committed May 1, 2024
1 parent dec8103 commit 00372cc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 00372cc

Please sign in to comment.