alter table codeq_user drop constraint codeq_user_uq1;
create unique index codeq_user_username_saml_idx on codeq_user (username) where password is null;
create unique index codeq_user_username_common_idx on codeq_user (username) where password is not null;
