lemmy/migrations/2022-04-11-210137_fix_unique_changeme/up.sql
Dessalines 2985e88a49
Fixing generate unique changeme (#2205)
* Fixing generate unique changeme

* Fixing generate unique changeme 2

* Changing link to .invalid domain.

Co-authored-by: Nutomic <me@nutomic.com>
2022-04-13 11:13:29 +00:00

6 lines
167 B
PL/PgSQL

create or replace function generate_unique_changeme()
returns text language sql
as $$
select 'http://changeme.invalid/' || substr(md5(random()::text), 0, 25);
$$;