Closed Vingurzhou closed 2 years ago
err := tx.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8").Debug().Migrator().AutoMigrate( new(models.CasbinRule), new(models.SysDept), new(models.SysConfig), new(models.SysTables), new(models.SysColumns), new(models.SysMenu), new(models.SysLoginLog), new(models.SysOperaLog), new(models.SysRoleDept), new(models.SysUser), new(models.SysRole), new(models.SysPost), new(models.DictData), new(models.DictType), new(models.SysJob), new(models.SysConfig), new(models.SysApi), new(models.TbDemo), )
done
err := tx.Set("gorm:table_options", "ENGINE=InnoDB DEFAULT CHARSET=utf8").Debug().Migrator().AutoMigrate( new(models.CasbinRule), new(models.SysDept), new(models.SysConfig), new(models.SysTables), new(models.SysColumns), new(models.SysMenu), new(models.SysLoginLog), new(models.SysOperaLog), new(models.SysRoleDept), new(models.SysUser), new(models.SysRole), new(models.SysPost), new(models.DictData), new(models.DictType), new(models.SysJob), new(models.SysConfig), new(models.SysApi), new(models.TbDemo), )