Add obsolete tokens, resolve conflicts, bump ent

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh
2021-04-30 18:31:49 +04:00
parent 24fa4def5b
commit 8553309db3
44 changed files with 766 additions and 111 deletions

View File

@@ -31,11 +31,11 @@ func (*Password) scanValues(columns []string) ([]interface{}, error) {
for i := range columns {
switch columns[i] {
case password.FieldHash:
values[i] = &[]byte{}
values[i] = new([]byte)
case password.FieldID:
values[i] = &sql.NullInt64{}
values[i] = new(sql.NullInt64)
case password.FieldEmail, password.FieldUsername, password.FieldUserID:
values[i] = &sql.NullString{}
values[i] = new(sql.NullString)
default:
return nil, fmt.Errorf("unexpected column %q for type Password", columns[i])
}