mirror of https://github.com/go-gorm/gorm.git
Fix constraint name regexp
This commit is contained in:
parent
7b1fb0bd73
commit
281f3e369a
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
// reg match english letters and midline
|
||||
var regEnLetterAndMidline = regexp.MustCompile("^[A-Za-z-_]+$")
|
||||
var regEnLetterAndMidline = regexp.MustCompile("^[0-9A-Za-z-_]+$")
|
||||
|
||||
type CheckConstraint struct {
|
||||
Name string
|
||||
|
|
Loading…
Reference in New Issue