Skip to content

Commit

Permalink
fix: 🚑 Change migration script to a boolean for hide_user
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsRepos committed May 1, 2024
1 parent 32401fd commit dec8103
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run():
column_names = [column[1] for column in columns]

if "hide_user" not in column_names:
db.execute_sql("ALTER TABLE invitations ADD COLUMN hide_user INTEGER SET DEFAULT 1")
db.execute_sql("ALTER TABLE invitations ADD COLUMN hide_user BOOLEAN DEFAULT 1")
else:
print("Column hide_user already exists")

Expand Down

0 comments on commit dec8103

Please sign in to comment.