diff --git a/models/migrations/v1_18/v230_test.go b/models/migrations/v1_18/v230_test.go index 017de96703..ff1aa4d751 100644 --- a/models/migrations/v1_18/v230_test.go +++ b/models/migrations/v1_18/v230_test.go @@ -11,12 +11,16 @@ import ( "github.com/stretchr/testify/assert" ) -func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) { - // premigration - type OAuth2Application struct { - ID int64 - } +// premigration +type OAuth2Application struct { + ID int64 +} +func (OAuth2Application) TableName() string { + return "oauth2_application" +} + +func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) { // Prepare and load the testing database x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application)) defer deferable()