db: fix wrong column type of login_source (#6283)

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
ᴜɴᴋɴᴡᴏɴ 2020-08-27 14:29:03 +08:00
parent db037495de
commit d7a6bb8bcb
No known key found for this signature in database
GPG Key ID: B43718D76E30A238

View File

@ -51,7 +51,7 @@ type LoginSource struct {
IsActived bool `xorm:"NOT NULL DEFAULT false" gorm:"NOT NULL"`
IsDefault bool `xorm:"DEFAULT false"`
Config interface{} `xorm:"-" gorm:"-"`
RawConfig string `xorm:"TEXT cfg" gorm:"COLUMN:cfg"`
RawConfig string `xorm:"TEXT cfg" gorm:"COLUMN:cfg;TYPE:TEXT"`
Created time.Time `xorm:"-" gorm:"-" json:"-"`
CreatedUnix int64