From a0ebb2d21582d5088b344acb97a8d9fc1f4b9774 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 14 Apr 2019 02:13:24 +0300 Subject: [PATCH] Change access_token field to text. Fixes #44 --- maubot/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot/db.py b/maubot/db.py index 2373fb2..709795d 100644 --- a/maubot/db.py +++ b/maubot/db.py @@ -46,7 +46,7 @@ class DBClient(Base): id: UserID = Column(String(255), primary_key=True) homeserver: str = Column(String(255), nullable=False) - access_token: str = Column(String(255), nullable=False) + access_token: str = Column(Text, nullable=False) enabled: bool = Column(Boolean, nullable=False, default=False) next_batch: SyncToken = Column(String(255), nullable=False, default="")