Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义列属性 #52

Open
Clierbin opened this issue Sep 3, 2019 · 1 comment
Open

自定义列属性 #52

Clierbin opened this issue Sep 3, 2019 · 1 comment

Comments

@Clierbin
Copy link

Clierbin commented Sep 3, 2019

image

active在数据库中是tinyint,显示什么BIT,我就改成Integer了

image

有两个需要改的,但是改下一个的时候之前那个就消失了

然后只改一个生成后的DO类也没有变,还是Boolean

image

@spawpaw
Copy link
Owner

spawpaw commented Sep 9, 2019

一般大家定义bool型都是用tinyint(1), 而tinyint(1)和tinyint(4)占用的空间是一样的,所以mysql默认将tinyint(1)转换为bit(1), 在jdbcUrl上加上参数即可解决tinyint变成bit的问题

刚刚更新了自定义列属性的提示文案,可以看一下~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants