lemmy/migrations/2021-09-20-112945_jwt-secret/up.sql

10 lines
208 B
MySQL
Raw Normal View History

2021-09-21 19:33:06 +00:00
-- generate a jwt secret
create extension if not exists pgcrypto;
2021-09-21 19:33:06 +00:00
create table secret(
id serial primary key,
2021-09-21 19:33:06 +00:00
jwt_secret varchar not null default gen_random_uuid()
);
2021-09-21 19:33:06 +00:00
insert into secret default values;