forked from AkkomaGang/akkoma
10 lines
447 B
Elixir
10 lines
447 B
Elixir
|
CREATE USER <%= dbuser %> WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
|
||
|
-- in case someone runs this second time accidentally
|
||
|
ALTER USER <%= dbuser %> WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
|
||
|
CREATE DATABASE <%= dbname %>;
|
||
|
ALTER DATABASE <%= dbname %> OWNER TO <%= dbuser %>;
|
||
|
\c <%= dbname %>;
|
||
|
--Extensions made by ecto.migrate that need superuser access
|
||
|
CREATE EXTENSION IF NOT EXISTS citext;
|
||
|
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|