File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 55package migrations
66
77import (
8- "code.gitea.io/gitea/modules/timeutil"
98 "xorm.io/xorm"
109)
1110
1211// addConfidentialColumnToOAuth2ApplicationTable: add Confidential column, setting existing rows to true
1312func addConfidentialColumnToOAuth2ApplicationTable (x * xorm.Engine ) error {
1413 type OAuth2Application struct {
15- ID int64 `xorm:"pk autoincr"`
16- UID int64 `xorm:"INDEX"`
17- Name string
18- ClientID string `xorm:"unique"`
19- ClientSecret string
20- Confidential bool `xorm:"NOT NULL DEFAULT TRUE"`
21- RedirectURIs []string `xorm:"redirect_uris JSON TEXT"`
22- CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
23- UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
14+ Confidential bool `xorm:"NOT NULL DEFAULT TRUE"`
2415 }
2516
2617 return x .Sync (new (OAuth2Application ))
You can’t perform that action at this time.
0 commit comments