Skip to content

Commit

Permalink
config🔧: set DB CHARSET utf8mb4(#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjianzhang committed Aug 8, 2022
1 parent 09bfdc3 commit 1bea64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/migrate/migration/version/1599190683659_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1bea64b

Please sign in to comment.