harbor/make/migrations/postgresql/0061_2.3.4_schema.up.sql
stonezdj 06715af303 Allow empty email attribute for ldap/oidc user
Define user.Email as sql.NullString to avoid unique constraint when email is empty in LDAP/OIDC
  Separate the common/models/User with the pkg/user/dao/User
  Fixes #10400
Signed-off-by: stonezdj <stonezdj@gmail.com>
2021-09-30 14:35:18 +08:00

1 line
48 B
SQL

UPDATE harbor_user SET email=NULL WHERE email=''