.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
Post a Comment