mirror of https://github.com/LemmyNet/lemmy.git
Change local unique username constraints.
parent
1e7c3841b2
commit
697c62fb64
|
@ -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));
|
||||||
|
|
|
@ -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));
|
Loading…
Reference in New Issue