I was just wondering if you really need to increment the room database version number if you changed only the Data Access Objects (DAO's).
So the scenario is:
Do I need to increment the room database version number?
Do I need to increment the room database version number?
You need to increment the schema version when you change the schema. Simply adding functions to a DAO should not result in a schema change. However, your schema might change by things beyond your DAO and your entities. Right now, I think only @DatabaseView would have that effect in terms of annotations, and I do not see anything in RoomDatabase.Builder that should have an effect (other than addMigrations(), which specifically is for version number changes).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With