mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-18 15:41:05 +00:00
e8107cc96a
- 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.
11 lines
346 B
Elixir
11 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 %>
|