MarseyWorld/migrations/20231125-add-extra-username...

6 lines
289 B
MySQL
Raw Normal View History

2023-11-25 21:57:15 +00:00
alter table users add column extra_username character varying(30) unique;
CREATE UNIQUE INDEX lowercase_extra_username ON public.users USING btree (lower((extra_username)::text));
CREATE INDEX users_extra_username_trgm_idx ON public.users USING gin (extra_username public.gin_trgm_ops);