google-developer-training / basic-android-kotlin-compose-training-inventory-app

Apache License 2.0
77 stars 84 forks source link

Persist data with Room - Forgotten migration strategy #93

Open IndrArthur opened 7 months ago

IndrArthur commented 7 months ago

URL of codelab: Persist data with Room: https://developer.android.com/codelabs/basic-android-kotlin-compose-persisting-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-persisting-data-room#6

Specify the language of the codelab if it is not English: English

In which task and step of the codelab can this issue be found? Step 7: Create a Database instance

Describe the problem In the 20th step of this part, you give an example of how the final code should look like. However, it seems that you've forgotten the .fallbackToDestructiveMigration() part from step 17.