diff --git a/server/utils/db.go b/server/utils/db.go index 802852ac..35cf56d4 100644 --- a/server/utils/db.go +++ b/server/utils/db.go @@ -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 }