akkoma/lib/mix/tasks/sample_psql.eex

10 lines
423 B
Elixir
Raw Normal View History

2017-12-04 01:06:52 +00:00
CREATE USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
-- in case someone runs this second time accidentally
ALTER USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
2017-12-04 01:06:52 +00:00
CREATE DATABASE pleroma_dev;
2017-11-26 17:57:49 +00:00
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;
CREATE EXTENSION IF NOT EXISTS pg_trgm;