Update 1599190683659_tables.go
This commit is contained in:
1 parent
1bea64bb6d
commit
9a596397ca
1 file changed
+1
-1
@@ -17,7 +17,7 @@ func init() {
|
|||||||
|
|
||||||
func _1599190683659Tables(db *gorm.DB, version string) error {
|
func _1599190683659Tables(db *gorm.DB, version string) error {
|
||||||
return db.Transaction(func(tx *gorm.DB) 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.CasbinRule),
|
||||||
new(models.SysDept),
|
new(models.SysDept),
|
||||||
new(models.SysConfig),
|
new(models.SysConfig),
|
||||||
|
|||||||
Reference in new issue
Block a user