Coding Challenge: Manual Room Migration
Test your understanding of manual Room migrations with a coding challenge.
We'll cover the following...
We'll cover the following...
Problem definition
We learned about manual data migrations in the "Handling Room Database Migrations" lesson. Let’s apply what we learned to add a new city
field in the User
entity and use it for read and write operations.
Instructions to follow:
Add the
city
field in theUser
entity by updating theUser.kt
file.Add a manual migration script to the
MyDatabase
...