-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues after new dbVersion (every time) #97
Comments
I am running into what sounds like the same issue. I added a boolean field to a table and incremented the db version. When launched the migration looked to run but then when my code touched the table I got a crash telling me to increment the db version. I have not been successful with the migrations with Rush yet. Even with simple things like above. I will have to do migrations in my next production build so will have to figure out a way to fix it. |
I'm glad to not be the only one having this issue! Most embarrassing issue come with final users...can't find a solution to prevent data loss. |
I have tried overriding the upgrade manager and wiping the tables that need to be upgraded and pull the latest data but that did not work. It's not a massive deal for me to resync my database so I'm thinking I'll have to drop the database completely before initializing rush. Then just allow it to start up as if a new database. Sucks though This will eventually be a deal breaker issue for us when our app is much bigger. |
I have tried in failure to get the app to stop crashing on migration. Even though the migration runs because I implemented the upgrade manager
I see in my log that the upgrade runs and finishes and then when I access the table that is changed I get the crash telling me to change the db version number. If I increment it 1 more again and then re-run the app it usually succeeds . So when I do my next app upgrade I'm running this code before I initialize RUSH in my application class
Down side is I have to re-sync my database from the server but at least the app is no longer crashing. |
Hi,
every time I need change my model structure (example add new class), I increment by one dbVersion (no debug mode), compile and install app, when code run .save() of object app gets stuck until I manually kill it.
If I increment dbVersion by two (so from 10 to 12) for example, db is cleared and I lost all data on saved db. But then app start run correctly, and I can run .save() without problems.
Classes are very simple like:
@RushTableAnnotation
public class StepsData extends RushObject {
}
and this is my rush init config
AndroidInitializeConfig config = new AndroidInitializeConfig(context);
RushConfig con = new RushConfig() {
@OverRide
public String dbName() {
return "settings.ba";
}
The text was updated successfully, but these errors were encountered: