# Mastering Room Database Migrations

DevFeed: [Mastering Room Database Migrations](<https://devfeed.tech/articles/mastering-room-database-migrations-22822.md>)

Original publisher: [Read original article](<http://androidessence.com/mastering-room-database-migrations/>)

Author: Adam McNeilly

Published: 2020-05-14T00:00:00Z

Content type: tutorial

Language: en

Sources: [Android Essence](<https://devfeed.tech/sources/android-essence.md>)

Topics: [Database Migration](<https://devfeed.tech/topics/database-migration.md>), [Database](<https://devfeed.tech/topics/database.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [database](<https://devfeed.tech/tags/database.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [schema](<https://devfeed.tech/tags/schema.md>)

## AI overview

A tutorial on migrating Room databases as an Android application changes database versions. It explains schema mismatch errors, version increments, migration failures, and destructive migrations, with attention to preserving data for offline applications.

## Source excerpt

In the last post, we demonstrated the different types of database relationships in Room. Next, we're going to explore another niched concept of Room database management: database migrations. A migration is a way to handle moving from one version of a database to another as users update your application from the play store.