Skip to content

Commit

Permalink
added the correct gorm:table_options for utf8mb4_unicode_ci-COLLA…
Browse files Browse the repository at this point in the history
…TE to be the default
  • Loading branch information
CommanderStorm committed Mar 16, 2024
1 parent 1dd292d commit 25a6e93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/utils/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ func SetupDB() *gorm.DB {
log.Info("Exiting after migration")
os.Exit(0)
}
db = db.Set("gorm:table_options", "ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8mb4_unicode_ci")
return db
}

0 comments on commit 25a6e93

Please sign in to comment.