Skip to content

Commit

Permalink
Skip PK uniqueness checking when first creating a Realm file
Browse files Browse the repository at this point in the history
tgoyne committed Sep 9, 2015
1 parent 0a41c85 commit c3649fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions object_store.cpp
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit c3649fb

Please sign in to comment.