pleroma/otp/templates/setup_db.psql.j2
author Luke Hoersten <luke@hoersten.org>
Sat, 10 Feb 2024 15:41:05 -0600
changeset 230 07f08cc98da0
parent 227 2e0366f2dcbe
permissions -rw-r--r--
Added swapfile role.

CREATE USER {{pleroma_db_user}};
ALTER USER {{pleroma_db_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}';
CREATE DATABASE {{pleroma_db}} WITH OWNER {{pleroma_db_user}};
\c {{pleroma_db}};
--Extensions made by ecto.migrate that need superuser access
CREATE EXTENSION IF NOT EXISTS citext;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";