.net - Simple migrations in Realm for Xamarin -


the documentation of realm xamarin says:

realm automatically perform migrations can done without processing, adding , removing classes or adding , removing properties class. more complex changes, proper migration required. not yet have api this, planned , added soon.

however, when add new field model, app crash due required migration.

my question is: how can make use of automatically performed migrations?

it known documentation issue: https://github.com/realm/realm-dotnet/issues/669

what can explicitly increment schema version each time simple model changes:

var config = realmconfiguration.defaultconfiguration; config.schemaversion = 1;  // increment when model changes 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -