I have a stored sqlite file from an old android app that I am putting into a new android app. Part of the upgrade process I am upgrading it to use Room. I found this because I needed it to read from an existing file. The problem is, every time I try to run the app in an emulator I am getting the Migration failed error. Here is the error...
java.lang.IllegalStateException: Migration didn't properly handle vegetables_table(com.androidtests.roomdemo.models.Vegetable).
Expected:
TableInfo{name='vegetables_table', columns={grams_in_cup=Column{name='grams_in_cup', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=0}, name=Column{name='name', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, id=Column{name='id', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=1}, long_desc=Column{name='long_desc', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}, com_name=Column{name='com_name', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0}}, foreignKeys=[], indices=[]}
Found:
TableInfo{name='vegetables_table', columns={}, foreignKeys=[], indices=[]}
However, I can open the database in DB Browser for SQLite and it shows all of the columns and data in the vegetables_table schema, You can see from the screenshot that all of the columns are there. This is the exact file that is in my android project, but RoomAsset is saying there are no columns in the database, even though there are columns and data in the database. Any ideas?

I have a stored sqlite file from an old android app that I am putting into a new android app. Part of the upgrade process I am upgrading it to use Room. I found this because I needed it to read from an existing file. The problem is, every time I try to run the app in an emulator I am getting the Migration failed error. Here is the error...
However, I can open the database in DB Browser for SQLite and it shows all of the columns and data in the vegetables_table schema, You can see from the screenshot that all of the columns are there. This is the exact file that is in my android project, but RoomAsset is saying there are no columns in the database, even though there are columns and data in the database. Any ideas?
