Order the steps
Order a migration test from 3 to 4.
- Insert rows using version 3 SQL
- Run and validate the migration to version 4
- Create the database at version 3 with MigrationTestHelper
- Query the rows and assert they're intact with new defaults
Choose an answer, then open Show answer below to check it.
Show answer
Answer: C A B D
- Create the database at version 3 with MigrationTestHelper Uses the exported 3.json schema.
- Insert rows using version 3 SQL Data an old user would have.
- Run and validate the migration to version 4 Room checks the schema matches 4.json.
- Query the rows and assert they're intact with new defaults Proves data survives.