agrosner / DBFlow

A blazing fast, powerful, and very simple ORM android database library that writes database code for you.
MIT License
4.87k stars 598 forks source link

Loosing data on upgrading DBFlow sdk version from 4.2.4 to 5.0.0-alpha1 #1704

Open mskiranrao opened 4 years ago

mskiranrao commented 4 years ago

ISSUE

DBFlow Version:5.0.0-alpha1

Bug or Feature Request: Bug

Description: Recently I migrated my pretty old android app to androidx. In my Windows machine it was working fine. But in MAC, it was causing issues with one of the DBflow tables we used inside an AAR. Both our app and the AAR was using the DBFlow version 4.2.4. When I googled for a solution as why it was causing an issue in the MAC but not Windows, I came across a comment where they suggested to upgrade the DBFlow version to 5 and so I tried upgrading to 5.0.0-alpha1. In the process I noticed that all the dependency package changed from Raizlabs to agrosner except for Kotlin extensions. So did the package names in the code. Modified across both the app and the AAR. By doing so the issue got fixed. It started working in the MAC too. But a new issue raised up. The existing table data where getting cleared. Tried upgrading the db versions but had no effect. Is the a work around or a fix for this? Or is there any procedure to follow in order to preserve the data?

agrosner commented 3 years ago

not sure what would cause the DB to clear itself. Do you have more insight into what happens?