Browse Source

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

# Conflicts:
#	CHANGELOG.md
ᴜɴᴋɴᴡᴏɴ 4 years ago
parent
commit
d7a6bb8bcb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/db/login_sources.go

+ 1 - 1
internal/db/login_sources.go

@@ -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