You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/migrations/2021-09-20-112945_jwt-secret/up.sql

10 lines
214 B
SQL

-- generate a jwt secret
CREATE EXTENSION IF NOT EXISTS pgcrypto;
CREATE TABLE secret (
id serial PRIMARY KEY,
jwt_secret varchar NOT NULL DEFAULT gen_random_uuid ()
);
INSERT INTO secret DEFAULT VALUES;