config🔧: set DB CHARSET utf8mb4(#674)

This commit is contained in:
zhangwenjian committed 2022-08-08 10:16:43 +08:00
1 parent 09bfdc3d39
commit 1bea64bb6d
1 file changed
+1 -1
@@ -17,7 +17,7 @@ func init() {
func _1599190683659Tables(db *gorm.DB, version string) error {
return db.Transaction(func(tx *gorm.DB) error {
err := tx.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4").Migrator().AutoMigrate(
err := tx.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ").Migrator().AutoMigrate(
new(models.CasbinRule),
new(models.SysDept),
new(models.SysConfig),