1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy.git synced 2025-01-24 06:37:57 +00:00
lemmy/migrations/2021-09-20-112945_jwt-secret/up.sql

10 lines
214 B
MySQL
Raw Normal View History

-- 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;