aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMarco Kundt <1415596+flexo3001@users.noreply.github.com>2021-02-17 16:20:06 +0100
committerGitHub <noreply@github.com>2021-02-17 15:20:06 +0000
commitd1496793b9c21da4195d19f526d85567d277f7f0 (patch)
tree464f32f0216ad0ea680034cf0721500db7766439 /build
parentc9f305f254ad9c02427c96d77632441eed16dbde (diff)
fix database names to reflect renaming (#1636)
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'build')
-rw-r--r--build/docker/config/dendrite-config.yaml4
-rwxr-xr-xbuild/docker/postgres/create_db.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/build/docker/config/dendrite-config.yaml b/build/docker/config/dendrite-config.yaml
index ca59ae03..ffcf6a45 100644
--- a/build/docker/config/dendrite-config.yaml
+++ b/build/docker/config/dendrite-config.yaml
@@ -309,12 +309,12 @@ user_api:
listen: http://0.0.0.0:7781
connect: http://user_api:7781
account_database:
- connection_string: postgresql://dendrite:itsasecret@postgres/dendrite_account?sslmode=disable
+ connection_string: postgresql://dendrite:itsasecret@postgres/dendrite_userapi_accounts?sslmode=disable
max_open_conns: 10
max_idle_conns: 2
conn_max_lifetime: -1
device_database:
- connection_string: postgresql://dendrite:itsasecret@postgres/dendrite_device?sslmode=disable
+ connection_string: postgresql://dendrite:itsasecret@postgres/dendrite_userapi_devices?sslmode=disable
max_open_conns: 10
max_idle_conns: 2
conn_max_lifetime: -1
diff --git a/build/docker/postgres/create_db.sh b/build/docker/postgres/create_db.sh
index 7495a397..eb77bb26 100755
--- a/build/docker/postgres/create_db.sh
+++ b/build/docker/postgres/create_db.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-for db in account device mediaapi syncapi roomserver signingkeyserver keyserver federationsender appservice naffka; do
+for db in userapi_accounts userapi_devices mediaapi syncapi roomserver signingkeyserver keyserver federationsender appservice naffka; do
createdb -U dendrite -O dendrite dendrite_$db
done