oauth: fix length constraints
This commit is contained in:
parent
a8013f1089
commit
9f7e7ef980
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ class OauthApp(Base):
|
|||
)
|
||||
|
||||
id = Column(Integer, primary_key=True)
|
||||
client_id = Column(String)
|
||||
client_id = Column(String(length=64))
|
||||
app_name = Column(String(length=50), nullable=False)
|
||||
redirect_uri = Column(String(length=50), nullable=False)
|
||||
description = Column(String(length=256), nullable=False)
|
||||
|
@ -74,7 +74,7 @@ class ClientAuth(Base):
|
|||
|
||||
user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
|
||||
oauth_client = Column(Integer, ForeignKey("oauth_apps.id"), primary_key=True)
|
||||
access_token = Column(String, nullable=False)
|
||||
access_token = Column(String(128), nullable=False)
|
||||
|
||||
user = relationship("User", viewonly=True)
|
||||
application = relationship("OauthApp", viewonly=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue