Skip to content

Commit

Permalink
validator unique columns
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Oct 29, 2024
1 parent e02f516 commit f50f774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validation/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var DBValidators = map[*regexp.Regexp]func(match []string, value *generic.Value,
}

func uniqueColumnsValidator(match []string, value *generic.Value, stmt *gorm.Statement, field *schema.Field) error {
var columns = strings.Split(match[1], ",")
var columns = strings.Split(match[1], "|")
evo.Dump(columns)
evo.Dump(match)
var model = db.Debug().Table(stmt.Table)
Expand Down

0 comments on commit f50f774

Please sign in to comment.