36bd97ba87
- added DynamicSupervisor, which starts Pleroma deps and restarts config dependent deps - added pleroma installer, where user can configure database credentials and pleroma config. Settings are saved into file and in database - added versioning for in database config. New version is created from changes which are passed to config update/delete endpoint. Every version contains backup with all changes added through update. Versioning supports rollbacks with N steps. With a rollback, all versions that come after the version on which the rollback was made are deleted.
12 lines
346 B
Elixir
12 lines
346 B
Elixir
CREATE USER <%= username %> WITH ENCRYPTED PASSWORD '<%= password %>';
|
|
CREATE DATABASE <%= database %> OWNER <%= username %>;
|
|
\c <%= database %>;
|
|
CREATE EXTENSION IF NOT EXISTS citext;
|
|
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
<%= if rum_enabled do
|
|
"CREATE EXTENSION IF NOT EXISTS rum;"
|
|
else
|
|
""
|
|
end %>
|