mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 08:11:20 +00:00
7 lines
277 B
MySQL
7 lines
277 B
MySQL
|
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)
|
||
|
$$;
|