Skip PK uniqueness checking when first creating a Realm file

This commit is contained in:
Thomas Goyne 2015-09-02 09:31:06 -07:00
parent 0a41c85d0a
commit c3649fbd17
1 changed files with 2 additions and 2 deletions

View File

@ -386,9 +386,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);
validate_primary_column_uniqueness(group, schema);
}
set_schema_version(group, version);
return true;