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 committed by Ari Lazier
parent fc48c88e69
commit e65ad57e00
1 changed files with 2 additions and 2 deletions

View File

@ -387,9 +387,9 @@ bool ObjectStore::update_realm_with_schema(Group *group,
// apply the migration block if provided and there's any old data // apply the migration block if provided and there's any old data
if (get_schema_version(group) != ObjectStore::NotVersioned) { if (get_schema_version(group) != ObjectStore::NotVersioned) {
migration(group, schema); migration(group, schema);
}
validate_primary_column_uniqueness(group, schema); validate_primary_column_uniqueness(group, schema);
}
set_schema_version(group, version); set_schema_version(group, version);
return true; return true;