I updated realm from 5.12 to 5.15 and without any changes on the models I got this exception when updating the app, but if I install as a fresh apk it will work.
java.lang.IllegalStateException: The following changes cannot be made in additive-only schema mode:
- Property '__ResultSets.created_at' has been made required.
- Property '__ResultSets.updated_at' has been made required.
at io.realm.internal.OsSharedRealm.nativeGetSharedRealm(Native Method)
at io.realm.internal.OsSharedRealm.
at io.realm.internal.OsSharedRealm.getInstance(OsSharedRealm.java:241)
Calling like this:
Realm.setDefaultConfiguration(SyncConfiguration.automatic())
mRealm = Realm.getDefaultInstance()
Realm version(s): 5.12 <-> 5.15.1
Realm Sync feature enabled: Yes
Android Studio version: 3.5
Android Build Tools version: 29
Gradle version: 3.5.0
Which Android version and device(s): All versions
Hmm, this could look like something we might have caused by accident. I'll look into it. Thanks for reporting.
Hey - looks like you forgot to add a T-* label - could you please add one (if you have access to add labels)?
This should be fixed in Realm Java 5.15.2
Most helpful comment
This should be fixed in Realm Java 5.15.2