emilsjolander / sprinkles

Sprinkles is a boiler-plate-reduction-library for dealing with databases in android applications
Apache License 2.0
772 stars 84 forks source link

Clear/Delete the database and start fresh when upgrading from an older version? #76

Open tmsbn opened 10 years ago

tmsbn commented 10 years ago

I had made and released an app with the old version of sprinkles(before you changed the migration model). Now we are releasing an update for the app .For this update,we are making lots changes to the structure and behaviour of the app database . I want to implement the following behaviour using sprinkles.

For my existing users, rather than doing any form of migration, I want to sprinkles to clear/delete the old database and recreate it. In other words, for my existing and new users, the application should behave the same(whether a previous version of db exists or not). Is there a build-in way to force-upgrade the db? Appreciate your help.