aboutsummaryrefslogtreecommitdiff
path: root/internal/db
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2020-11-28 02:11:11 +0800
committerGitHub <noreply@github.com>2020-11-28 02:11:11 +0800
commit99f1b9899f9e6bbe03a2b8345ac2fc0a6b7e237c (patch)
treebf495830822038b3c5f70c590693991bf4112374 /internal/db
parentbee3bebb4ea8e56759100040f1942fc963bc3b96 (diff)
build(deps): bump gorm.io/gorm from 1.20.6 to 1.20.7 (#6425)
* build(deps): bump gorm.io/gorm from 1.20.6 to 1.20.7 Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.20.6 to 1.20.7. - [Release notes](https://github.com/go-gorm/gorm/releases) - [Commits](https://github.com/go-gorm/gorm/compare/v1.20.6...v1.20.7) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix compile error Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
Diffstat (limited to 'internal/db')
-rw-r--r--internal/db/db.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/db/db.go b/internal/db/db.go
index 739dea68..a0623344 100644
--- a/internal/db/db.go
+++ b/internal/db/db.go
@@ -182,10 +182,7 @@ func Init(w logger.Writer) (*gorm.DB, error) {
conf.UsePostgreSQL = true
case "mysql":
conf.UseMySQL = true
- db = db.Set("gorm:table_options", "ENGINE=InnoDB").
- Session(&gorm.Session{
- WithConditions: true,
- })
+ db = db.Set("gorm:table_options", "ENGINE=InnoDB").Session(&gorm.Session{})
case "sqlite3":
conf.UseSQLite3 = true
case "mssql":