1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 17:17:19 +00:00
This commit is contained in:
Lunny Xiao
2024-04-19 19:50:06 +08:00
parent f8d57dcfa0
commit 05674f7a38

View File

@ -11,12 +11,16 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )
func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) {
// premigration // premigration
type OAuth2Application struct { type OAuth2Application struct {
ID int64 ID int64
} }
func (OAuth2Application) TableName() string {
return "oauth2_application"
}
func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) {
// Prepare and load the testing database // Prepare and load the testing database
x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application)) x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application))
defer deferable() defer deferable()