yuweiguocn / GreenDaoUpgradeHelper

To solve database upgrade of greenDao and just need one line code
1.53k stars 295 forks source link

添加boolean字段后升级,表被清空 #49

Closed Jason0501 closed 6 years ago

yuweiguocn commented 6 years ago

这个是由于greendao在使用基本类型时生成的SQL语句默认添加了非空约束导致,请使用对象类型,如Boolean可避免此问题产生。

Jason0501 commented 6 years ago

好的,下次试一下,先谢啦!