android - OnUpgrade not using drop table/create table/insert into -


I really like to deal with the SQLite database when it is developed for Android, but I have a question when it It comes to upgrading during the database. Whether the application has been recommended or whether it is able to roll back in case of failure, instead of putting a drop table / table / insert within a transaction Standard procedure (as it seems) Mitigation is more secure?

recommended this method

Which particular method are you talking about?
This link shows the simple use of it, which, as part of the standard API, I can say that has been recommended.

Whatever code you want to do, upgrade method, whether it is DROP ping tables, ALTER ing, or whatever Ho.

If you want to wrap them up in a transaction, which is up to you.


Comments