Skip to content

Commit

Permalink
Add default to user deleted column (#2526)
Browse files Browse the repository at this point in the history
Not having this doesn't appear to be causing any issues but making this
change now might prevent future headaches.
  • Loading branch information
olliestanley committed Apr 14, 2023
1 parent 90ee0ea commit 49b9713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference/server/oasst_inference_server/models/user.py
Expand Up @@ -15,7 +15,7 @@ class DbUser(SQLModel, table=True):

display_name: str = Field(nullable=False, max_length=256)

deleted: bool = Field(sa_column=sa.Column(sa.Boolean, nullable=False, server_default=sa.false()))
deleted: bool = Field(False, sa_column=sa.Column(sa.Boolean, nullable=False, server_default=sa.false()))


class DbRefreshToken(SQLModel, table=True):
Expand Down

0 comments on commit 49b9713

Please sign in to comment.