Room Migration Alter Table not adding new column & migrate getting called again and again
Make sure your column is in model class. In your case, you are adding column age
like this: ADD COLUMN 'age' INTEGER
, so you must have int age
in your model class.
Also, it is a good idea to write migration test to known exactly what is failing. You can find about migration test in android documentation here: https://developer.android.com/topic/libraries/architecture/room.html#db-migration-testing