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

onPreMigrate() doMigration() onPostMigrate() are never called with app updates. #88

Open subinsebastien opened 9 years ago

subinsebastien commented 9 years ago

This appears to be a bug. Addmigration callbacks are received only when the app is installed for the first time. Subsequent DB updates needs to be handled.

dalufine commented 9 years ago

After review the source code, I found that,if you want update the database,you should add another code like [sprinkles.addMigration(new Migration() {}] below the older. this will exec once. sorry for my english.