Use varchar instead of TEXT
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Jonas Franz 2020-06-25 20:29:29 +02:00 committed by Jonas Franz
parent ffb70e9879
commit 9bcfff5627
Signed by untrusted user: JonasFranz
GPG Key ID: 7293A220B7C38080
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ import (
// OAuth2BlockedJTI contains all JTI signatures for already assigned JWT tokens
type OAuth2BlockedJTI struct {
Signature string `xorm:"pk not null"`
Signature string `xorm:"varchar(64) pk not null"`
ExpiresAt *time.Time
}

View File

@ -26,11 +26,11 @@ import (
// OAuth2Client represents a third party application used the authenticate with Vikunja
type OAuth2Client struct {
ClientID string `xorm:"pk not null"`
ClientID string `xorm:"varchar(36) pk not null"`
ClientSecret []byte
RedirectURIs []string
GrantTypes []string
ResponseTypes []string
RedirectURIs []string `xorm:"redirect_uris"`
GrantTypes []string `xorm:"grant_types"`
ResponseTypes []string `xorm:"response_types"`
Public bool
User *user.User `xorm:"-"`