Skip to content

Commit cd7f1e9

Browse files
authored
Do not validate child layers for unique value (#849)
1 parent b6a082e commit cd7f1e9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Mergin/validation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ def check_project_relations(self):
299299

300300
# check fields are unique
301301
self._check_field_unique(parent_layer, parent_fields)
302-
self._check_field_unique(child_layer, child_fields)
303302

304303
# check that fields used in relation are not primary keys
305304
if parent_layer.dataProvider().storageType() == "GPKG":
@@ -330,7 +329,6 @@ def check_value_relation(self):
330329
# and is not a primary key
331330
if child_layer.dataProvider().storageType() == "GPKG":
332331
idx = child_layer.fields().indexFromName(str(cfg["Key"]))
333-
self._check_field_unique(child_layer, [idx])
334332
self._check_primary_keys(child_layer, [idx])
335333

336334
def _check_field_unique(self, layer, fields):

0 commit comments

Comments
 (0)