Skip to content

Commit

Permalink
Set refresh token to text
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Mar 11, 2024
1 parent 8f577c2 commit c701b25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
def upgrade():
op.add_column("user", sa.Column("refresh_token", sa.Text, nullable=True))


def downgrade():
op.drop_column("user", "refresh_token")
2 changes: 1 addition & 1 deletion trailblazer/store/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class User(Model):
id = Column(types.Integer, primary_key=True)
is_archived = Column(types.Boolean, default=False)
name = Column(types.String(128))
refresh_token = Column(types.String(128))
refresh_token = Column(types.Text)

runs = orm.relationship("Analysis", backref="user")

Expand Down

0 comments on commit c701b25

Please sign in to comment.