Re-generate ent code.
This commit is contained in:
parent
2a853c05d6
commit
9aa6784751
13 changed files with 850 additions and 850 deletions
|
|
@ -71,14 +71,14 @@ var (
|
|||
)
|
||||
|
||||
// checkColumn checks if the column exists in the given table.
|
||||
func checkColumn(table, column string) error {
|
||||
func checkColumn(t, c string) error {
|
||||
initCheck.Do(func() {
|
||||
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
|
||||
passwordtoken.Table: passwordtoken.ValidColumn,
|
||||
user.Table: user.ValidColumn,
|
||||
})
|
||||
})
|
||||
return columnCheck(table, column)
|
||||
return columnCheck(t, c)
|
||||
}
|
||||
|
||||
// Asc applies the given fields in ASC order.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue