Skip PK uniqueness checking when first creating a Realm file
This commit is contained in:
parent
fc48c88e69
commit
e65ad57e00
|
@ -387,9 +387,9 @@ bool ObjectStore::update_realm_with_schema(Group *group,
|
|||
// apply the migration block if provided and there's any old data
|
||||
if (get_schema_version(group) != ObjectStore::NotVersioned) {
|
||||
migration(group, schema);
|
||||
}
|
||||
|
||||
validate_primary_column_uniqueness(group, schema);
|
||||
}
|
||||
|
||||
set_schema_version(group, version);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue