Skip to content

Commit 918472d

Browse files
committed
Address code review comments
1 parent a87a209 commit 918472d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

models/migrations/v227.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,13 @@
55
package migrations
66

77
import (
8-
"code.gitea.io/gitea/modules/timeutil"
98
"xorm.io/xorm"
109
)
1110

1211
// addConfidentialColumnToOAuth2ApplicationTable: add Confidential column, setting existing rows to true
1312
func 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))

0 commit comments

Comments
 (0)