mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-15 09:04:25 +00:00
Skip PK uniqueness checking when first creating a Realm file
This commit is contained in:
parent
0a41c85d0a
commit
c3649fbd17
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user