The ULTIMATE Guide to Room Migration in Android (Database Migration Tutorial)

preview_player
Показать описание
Whenever you change your database schema, you will need to provide a migration, so Room knows what to do with existing data. In this video I will show you how that works.

⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:

Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!

Join this channel to get access to perks:

Get the source code for this video here:

Join my Discord server:

You like my free content? Here you can buy me a coffee:
Рекомендации по теме
Комментарии
Автор

Every time I encounter a problem, you just release a video of a solution, there is no one like you!!
I'm a big fan!! 🤗

tch.
Автор

This man is doing Google a huge favor 😂😂

yasserakbbach
Автор

Room migration blog by Florina was excellent, but glancing at the Migration Testing blog, it looked scary to me, until I saw this video. Turns out it wasn't scary at all and was very straight forward. Thank you for this video. 🙂

hiteshchalise
Автор

guide that nobody asked for but everyone needed!

sijanneupane
Автор

I remember when u were 1k subs. We talked about brexit that it'll wont seperate us. now you have 82k + subs. Keep it going bro.

xD-saleem
Автор

everytime i stuck on something for long time this man saves me::: thanks alot

HaSeebpjr
Автор

When using the Automigration feature, I often mess up my databases in a way, where my code can't comprehend the new data and crashes when fetching the Rows from the table. Until they make it even easier to migrate, I will continue modifying my tables manually with DB Browser :D

duhankazanci
Автор

I just changed the Device from asio to SPDIF-out (soft blaster z) TNice tutorials improved the soft quality dramatically. I tNice tutorialnk tNice tutorials did the trick!

emirhanozer
Автор

I wait too long for this. Love your content <3

annguyenhoang
Автор

Thx for another great video Philipp! A quick short video about Moshi would be great. (also a long one can be great too cause it has too many features!)

behnawm
Автор

I love your ULTIMATE guides, thank you very much.

tinoutech
Автор

Great video as always Phil. I dont know if its because video was created a year ago from today and things changed since then but at this moment room automigration supports adding a new table and there is no need to do manual migration for that. Please correct me if i m wrong

pmockevicius
Автор

This feels so good. Thank you Philipp.

osisuper
Автор

It would be better to use the extension function ".use{}" instead of "apply" at 29:31

Daaaaaaavid
Автор

Very well explained. Do you have any information about what thread are these migrations run in? I could not find any information about that.

zoltanbalazskozma
Автор

Thanks Philipp for this useful content and for simple explaining

hossamqandel
Автор

Now I know why my migration with a new table didn't work well. Thanks Phil

samsammaniamantap
Автор

what about backing up and restoring a database (export/import) what would the best way to do that ?

vbcv
Автор

Thanks a lot. this is exactly what I was looking for

Guilo
Автор

Very well explained, thanks for the video. The automigration would not work in case of having, already done, several manual migrations? or at least i would have to generate a JSON migration file for all the versions of the database.

Lethans