Change local unique username constraints.

This commit is contained in:
Dessalines 2020-04-21 09:21:29 -04:00
parent abd0601f08
commit b396ed407e
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
-- The username index
drop index idx_user_name_lower_actor_id;
create unique index idx_user_name_lower on user_ (lower(name));

View File

@ -0,0 +1,2 @@
drop index idx_user_name_lower;
create unique index idx_user_name_lower_actor_id on user_ (lower(name), lower(actor_id));