From cbed20884ff0c0befe6868117b1f1176d3d3676f Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Thu, 5 Dec 2024 10:54:52 +1100 Subject: [PATCH] Fixes empty unique_site definition --- src/Database/Traits/Validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Traits/Validation.php b/src/Database/Traits/Validation.php index 80830b839..cdc68ecb8 100644 --- a/src/Database/Traits/Validation.php +++ b/src/Database/Traits/Validation.php @@ -517,7 +517,7 @@ protected function processRuleFieldNames($rules) protected function processValidationUniqueRule($definition, $fieldName) { if (!$this->exists) { - if ($definition === 'unique') { + if ($definition === 'unique' || $definition === 'unique_site') { return $definition . ':' . $this->getTable(); } return $definition;