2022-10-24 07:59:24 +00:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
2022-11-27 18:20:29 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2022-10-24 07:59:24 +00:00
|
|
|
|
2022-12-08 08:21:37 +00:00
|
|
|
package v1_18 //nolint
|
2022-10-24 07:59:24 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"xorm.io/xorm"
|
|
|
|
)
|
|
|
|
|
2024-04-20 12:19:59 +00:00
|
|
|
type oAuth2Application struct {
|
|
|
|
ID int64
|
|
|
|
ConfidentialClient bool `xorm:"NOT NULL DEFAULT TRUE"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (oAuth2Application) TableName() string {
|
|
|
|
return "oauth2_application"
|
|
|
|
}
|
|
|
|
|
2022-11-02 08:54:36 +00:00
|
|
|
// AddConfidentialColumnToOAuth2ApplicationTable: add ConfidentialClient column, setting existing rows to true
|
|
|
|
func AddConfidentialClientColumnToOAuth2ApplicationTable(x *xorm.Engine) error {
|
2024-04-20 12:19:59 +00:00
|
|
|
return x.Sync(new(oAuth2Application))
|
2022-10-24 07:59:24 +00:00
|
|
|
}
|