]> Untitled Git - lemmy.git/blob - migrations/2021-09-20-112945_jwt-secret/up.sql
Dont use sha hash for password reset token (fixes #3491) (#3795)
[lemmy.git] / migrations / 2021-09-20-112945_jwt-secret / up.sql
1 -- generate a jwt secret
2 CREATE EXTENSION IF NOT EXISTS pgcrypto;
3
4 CREATE TABLE secret (
5     id serial PRIMARY KEY,
6     jwt_secret varchar NOT NULL DEFAULT gen_random_uuid ()
7 );
8
9 INSERT INTO secret DEFAULT VALUES;