Skip to content

Commit

Permalink
Merge branch '3.x' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Dec 4, 2024
2 parents 7282b80 + cbed208 commit 2f197e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Traits/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f197e5

Please sign in to comment.