mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
6 lines
No EOL
276 B
PL/PgSQL
6 lines
No EOL
276 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)
|
|
$$; |