Skip to content

Commit

Permalink
fix: 🐛 Fix migration syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsRepos committed May 3, 2024
1 parent 3e52988 commit affa9ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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;")
db.execute_sql("ALTER TABLE invitations ALTER COLUMN live_tv SET DATA TYPE BOOLEAN;")
else:
print("Column hide_user already exists")

Expand Down

0 comments on commit affa9ff

Please sign in to comment.