From 4877f875e64001698805500791f4c3cd21b7b747 Mon Sep 17 00:00:00 2001 From: Herman Snevajs Date: Thu, 18 Dec 2025 11:35:35 +0100 Subject: [PATCH] Do not validate child layers for unique value --- Mergin/validation.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Mergin/validation.py b/Mergin/validation.py index 28c2a026..7b91b75d 100644 --- a/Mergin/validation.py +++ b/Mergin/validation.py @@ -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": @@ -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):