mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-22 20:43:05 +00:00
2985e88a49
* Fixing generate unique changeme * Fixing generate unique changeme 2 * Changing link to .invalid domain. Co-authored-by: Nutomic <me@nutomic.com>
6 lines
277 B
PL/PgSQL
6 lines
277 B
PL/PgSQL
create or replace function generate_unique_changeme()
|
|
returns text language sql
|
|
as $$
|
|
select 'http://changeme_' || string_agg (substr('abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789', ceil (random() * 62)::integer, 1), '')
|
|
from generate_series(1, 20)
|
|
$$;
|