-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow more than 255 characters for tokens in external_login_user tabl… (
#8585) * Allow more than 255 characters for tokens in external_login_user table (#8554) Signed-off-by: Wenxuan Zhao <[email protected]> * use old xorm repo
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2019 The Gitea Authors. All rights reserved. | ||
// Use of this source code is governed by a MIT-style | ||
// license that can be found in the LICENSE file. | ||
|
||
package migrations | ||
|
||
import ( | ||
"github.com/go-xorm/xorm" | ||
) | ||
|
||
func changeSomeColumnsLengthOfExternalLoginUser(x *xorm.Engine) error { | ||
type ExternalLoginUser struct { | ||
AccessToken string `xorm:"TEXT"` | ||
AccessTokenSecret string `xorm:"TEXT"` | ||
RefreshToken string `xorm:"TEXT"` | ||
} | ||
|
||
return x.Sync2(new(ExternalLoginUser)) | ||
} |