aboutsummaryrefslogtreecommitdiffstats
path: root/db/generate_secret.sql
blob: ad4b48200039dc643fdc09d73d4808a4b468eab5 (plain)
1
2
3
4
5
6
7
8
-- assumes there's a secret table (from the schema.sql)
-- use your own secret if you have one :-)
-- otherwise you can use this to populate the secret table with a random secret

-- empty the table in case it has a value already (i.e., this is *destructive*!)
delete from secret;

insert into secret values (md5(random()::text));