gormt icon indicating copy to clipboard operation
gormt copied to clipboard

关于gorm2.0的兼容计划

Open gracece opened this issue 4 years ago • 3 comments

gorm 2.0 有一些破坏性变更

比如model tags 已经改成用驼峰

GORM V2 prefer write tag name in camelCase, tags in snake_case won’t works anymore https://gorm.io/zh_CN/docs/models.html#tags

这里是否有计划兼容或增加选项来区分呢?

gracece avatar Nov 19 '20 08:11 gracece

收到,我会尽快更新进去

xxjwxc avatar Nov 19 '20 09:11 xxjwxc

已添加部分 https://github.com/xxjwxc/gormt/commit/2852b6132f3d8900ceeba7d96ee63abee4bb420c

GORM V2 prefer write tag name in camelCase, tags in snake_case won’t works anymore
https://gorm.io/zh_CN/docs/models.html#tags

是否还有其它不兼容的?

xxjwxc avatar Nov 21 '20 06:11 xxjwxc

刚开始用2.0,其他问题暂未发现

gracece avatar Nov 23 '20 01:11 gracece