roles/pleroma/templates/setup_db.psql.j2
changeset 60 48a3a65119d5
child 63 56531bbfd074
equal deleted inserted replaced
-1:000000000000 60:48a3a65119d5
       
     1 CREATE USER {{pleroma_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}' CREATEDB;
       
     2 -- in case someone runs this second time accidentally
       
     3 ALTER USER {{pleroma_user}} WITH ENCRYPTED PASSWORD '{{pleroma_db_passwd}}' CREATEDB;
       
     4 CREATE DATABASE {{pleroma_user}};
       
     5 ALTER DATABASE {{pleroma_user}} OWNER TO {{pleroma_user}};
       
     6 \c {{pleroma_user}};
       
     7 --Extensions made by ecto.migrate that need superuser access
       
     8 CREATE EXTENSION IF NOT EXISTS citext;
       
     9 CREATE EXTENSION IF NOT EXISTS pg_trgm;