-
Notifications
You must be signed in to change notification settings - Fork 295
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
Please wrap migrate() in a transaction and throws a SQLException #13
Comments
I meet the same problem... |
What I want is this. |
I think it can help you. Good luck!!! http://stackoverflow.com/questions/16154113/greendao-schema-upgrade |
thanks ☺ @yukoba |
@yukoba i find that OpenHelper.onUpgrade() will be execute in transaction by default.
My Conclusion is: //MigrationHelper.java //MyOpenHelper.java |
Could you please wrap migrate() in a transaction and throws a SQLException?
The current code destroys the database when a SQLException is thrown.
The text was updated successfully, but these errors were encountered: