1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-29 05:55:10 +01:00
pleroma/lib/mix/tasks/sample_psql.eex
Henry Jameson 964e2dd2f0 unfuck
2017-12-04 04:06:52 +03:00

9 lines
383 B
Elixir

CREATE USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
-- in case someone runs this second time accidentally
ALTER USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
CREATE DATABASE pleroma_dev;
ALTER DATABASE pleroma_dev OWNER TO pleroma;
\c pleroma_dev;
--Extensions made by ecto.migrate that need superuser access
CREATE EXTENSION IF NOT EXISTS citext;