admin管理员组文章数量:1401176
In my android project I have two module say Module1 and Module2 and both have separate DB say DB1 and DB2, Now due to cross functionality in module I have to merge both module and so now only one DB is required, But this project is already live now how to manage DB migration while merging both DB into one.
In my android project I have two module say Module1 and Module2 and both have separate DB say DB1 and DB2, Now due to cross functionality in module I have to merge both module and so now only one DB is required, But this project is already live now how to manage DB migration while merging both DB into one.
Share Improve this question asked Mar 24 at 4:50 gourav anandgourav anand 232 bronze badges 01 Answer
Reset to default 01. create all 'DB2's tables in DB1.
2. Make one function (on the opening activity) to copy data from the DB2's tables into DB1 (which data you required to continue)
3. make sure this function should run one time only.
4. By the ext versions, ignore the DB2. And later on (after a while) you can remove the DB2.
本文标签: databaseRoom DB migration in Android KotlinStack Overflow
版权声明:本文标题:database - Room DB migration in Android Kotlin - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744260680a2597700.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论