mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2025-01-20 11:16:04 +01:00
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;
|