aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-08-27 14:29:03 +0800
committerGitHub <noreply@github.com>2020-08-27 14:29:03 +0800
commit4ecd588776f6a18c5c0c0b1b993bb0d25c1c16cd (patch)
treeab0da5309a30679f2f6ccfb3799befcf69babce6
parent4e5b7c5d24d5295ff5b4326cf76d84e2c0d7c404 (diff)
db: fix wrong column type of `login_source` (#6283)
-rw-r--r--CHANGELOG.md1
-rw-r--r--internal/db/login_sources.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 581b7460..4c963928 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ All notable changes to Gogs are documented in this file.
### Fixed
- The `updated_at` field is now correctly updated when updates an issue. [#6209](https://github.com/gogs/gogs/issues/6209)
+- Fixed a regression which created `login_source.cfg` column to have `VARCHAR(255)` instead of `TEXT` in MySQL. [#6280](https://github.com/gogs/gogs/issues/6280)
### Removed
diff --git a/internal/db/login_sources.go b/internal/db/login_sources.go
index bbc97062..3c47a14c 100644
--- a/internal/db/login_sources.go
+++ b/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