Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Mergin/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ def check_project_relations(self):

# check fields are unique
self._check_field_unique(parent_layer, parent_fields)
self._check_field_unique(child_layer, child_fields)

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

def _check_field_unique(self, layer, fields):
Expand Down
Loading