Closed davieskent closed 1 year ago
➤ Clemente Tort Barbero commented:
I think some of the devices did not migrate during the first update as no migration was provided, and now they are unable to update because they are on a different db version.
I would recommend bumping the version and then doing a migration step to address these issues.
@davieskent Is this still a problem or do you have any further observations that could shed light on the issue?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
How frequently does the bug occur?
Sometimes
Description
I've updated my app on the play store and started having the crash:
I've changed my model from:
to:
When the model was created, it was like
addField(PersonRealm.NAME, String::class.java, isRequired = true)
And on the migration, only have added:
I've removed the
@Required
annotation from the field and changed my migration to:I've locally tested, and it seemed the migration was now correct, but after uploading a new version to the store I'm still having the crash (way less crashes nevertheless):
Do I need to change anything more in my migration?
Stacktrace & log output
No response
Can you reproduce the bug?
Not yet
Reproduction Steps
No response
Version
10.4.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
Yes, using encryption
Platform OS and version(s)
Android 9 and 11
Build environment
No response