Skip to content

Commit

Permalink
Fixes empty unique_site definition
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Dec 4, 2024
1 parent da037ee commit cbed208
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 cbed208

Please sign in to comment.