Sugar ORM ANDROID

1

Good morning

Is there any way to change tables and fields in the Sugar ORM database, so that when performing the app update, it does not crash?

I have a registration and I have the PRODUCTS table and it contains name, code, location, etc ... If I try to raise a field in the table, and put price. When I update the application the old bank does not update and even corrupts itself. The same happens if I try to put another table in the database, for example the PEOPLE table.

Thank you

    
asked by anonymous 29.10.2015 / 13:10

1 answer

1

Have you even looked at documentation ? I'm starting to work with SugarORM, but it seems to me that you can specify a custom query to run when updating the database.

Remembering that when changing the database you need to change the version of the database in the manifest so that it is rebuilt.

    
29.10.2015 / 23:46