Room Database Migration doesnt properly handle ALTER TABLE migration

后端 未结 7 2004
渐次进展
渐次进展 2020-12-13 06:36

Java.lang.IllegalStateException

Migration didn\'t properly handle user(therealandroid.github.com.roomcore.java.User).

Expected:

TableInfo{n

相关标签:
7条回答
  • 2020-12-13 07:03

    I too wrote a small JS script which you can find https://hrankit.github.io/RoomSQLiteDifferenceFinder/

    The process is pretty Simple.

    1. Input the Expected error log in Expected column which is the Left One.

    2. Input the Found error log in Found column which is the Right One.

    3. Press Go. button. The error logs get converted to JSON.

    4. Press Compare button and Voila, you have the difference you need.

    This plugin finds out the difference in the two Expected and Found dump from the Android Studio Logcat.

    Checkout the image of comparison here

    0 讨论(0)
提交回复
热议问题