2018-12-16 16:25:31 +00:00
|
|
|
CREATE USER <%= dbuser %> WITH ENCRYPTED PASSWORD '<%= dbpass %>';
|
|
|
|
CREATE DATABASE <%= dbname %> OWNER <%= dbuser %>;
|
|
|
|
\c <%= dbname %>;
|
2017-11-26 17:57:49 +00:00
|
|
|
--Extensions made by ecto.migrate that need superuser access
|
2017-12-03 23:06:05 +00:00
|
|
|
CREATE EXTENSION IF NOT EXISTS citext;
|
2018-05-16 15:55:20 +00:00
|
|
|
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
2018-12-02 10:20:49 +00:00
|
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
2019-06-22 09:54:16 +00:00
|
|
|
<%= if rum_enabled do
|
|
|
|
"CREATE EXTENSION IF NOT EXISTS rum;"
|
|
|
|
else
|
|
|
|
""
|
|
|
|
end %>
|