Change unique constraint form usersource #30
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We should change the unique constraint form the usersource table for the username userid.
To check a username is used only one time we need to make sure the unique constraint only works for activated user sources
https://stackoverflow.com/questions/8917065/how-to-add-a-conditional-unique-index-on-postgresql