forked from AkkomaGang/akkoma
made psql script compatible with migrations or generate_config reruns
This commit is contained in:
parent
071f518028
commit
6b60f5f64a
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
CREATE USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
|
CREATE USER IF NOT EXISTS pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
|
||||||
CREATE DATABASE pleroma_dev;
|
-- in case someone runs this second time accidentally
|
||||||
|
ALTER USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
|
||||||
|
CREATE DATABASE IF NOT EXISTS pleroma_dev;
|
||||||
ALTER DATABASE pleroma_dev OWNER TO pleroma;
|
ALTER DATABASE pleroma_dev OWNER TO pleroma;
|
||||||
\c pleroma_dev;
|
\c pleroma_dev;
|
||||||
--Extensions made by ecto.migrate that need superuser access
|
--Extensions made by ecto.migrate that need superuser access
|
||||||
CREATE EXTENSION citext;
|
CREATE EXTENSION IF NOT EXISTS citext;
|
||||||
|
|
Loading…
Reference in a new issue