简体   繁体   中英

Android room migration for new table

I have an android app which is already use database with some tables in it. I also create a new table.

Do I need a migration for that? Or Room can handle it in automatic way?

Yes you need a migration for that. You can migrate manually or from Room version 2.4.0-alpha01 you can use automated migrations .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM