Hey people I have a question regarding migrations:...
# room
k
Hey people I have a question regarding migrations: For example I have 1 table with 5 column and one of the column stored the string which is coming from the BE Column 1 - id Column 2 - name Column 3- type -> json type (text) now from the BE response we are getting normal type as string Column 3 - type -> string (text) So how to map the data? If I am on 1st version of migration, I have json string and now when I switch to new version & I have a string type data.In the app, I already stored the old data into table and also new data into table. How app will work? For the 1st time app is crashing so how to handle this situation? We have to map the old data to the new format how to do this ? any other possible way to do that ?
y
Not sure if i follow. What was the kotlin type of that column before and after
m
for that auto-migration won’t solve your problem 😛 You don’t need a migration, just a simple data update