mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-13 18:43:30 +01:00
Use dbname instead of database for Postgres config. (#16618)
This commit is contained in:
parent
9f514dd0fb
commit
bc4372ad81
5 changed files with 9 additions and 8 deletions
1
changelog.d/16618.misc
Normal file
1
changelog.d/16618.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Use `dbname` instead of the deprecated `database` connection parameter for psycopg2.
|
|
@ -66,7 +66,7 @@ database:
|
|||
args:
|
||||
user: <user>
|
||||
password: <pass>
|
||||
database: <db>
|
||||
dbname: <db>
|
||||
host: <host>
|
||||
cp_min: 5
|
||||
cp_max: 10
|
||||
|
|
|
@ -1447,7 +1447,7 @@ database:
|
|||
args:
|
||||
user: synapse_user
|
||||
password: secretpassword
|
||||
database: synapse
|
||||
dbname: synapse
|
||||
host: localhost
|
||||
port: 5432
|
||||
cp_min: 5
|
||||
|
@ -1526,7 +1526,7 @@ databases:
|
|||
args:
|
||||
user: synapse_user
|
||||
password: secretpassword
|
||||
database: synapse_main
|
||||
dbname: synapse_main
|
||||
host: localhost
|
||||
port: 5432
|
||||
cp_min: 5
|
||||
|
@ -1539,7 +1539,7 @@ databases:
|
|||
args:
|
||||
user: synapse_user
|
||||
password: secretpassword
|
||||
database: synapse_state
|
||||
dbname: synapse_state
|
||||
host: localhost
|
||||
port: 5432
|
||||
cp_min: 5
|
||||
|
|
|
@ -974,7 +974,7 @@ def setup_test_homeserver(
|
|||
database_config = {
|
||||
"name": "psycopg2",
|
||||
"args": {
|
||||
"database": test_db,
|
||||
"dbname": test_db,
|
||||
"host": POSTGRES_HOST,
|
||||
"password": POSTGRES_PASSWORD,
|
||||
"user": POSTGRES_USER,
|
||||
|
@ -1033,7 +1033,7 @@ def setup_test_homeserver(
|
|||
import psycopg2.extensions
|
||||
|
||||
db_conn = db_engine.module.connect(
|
||||
database=POSTGRES_BASE_DB,
|
||||
dbname=POSTGRES_BASE_DB,
|
||||
user=POSTGRES_USER,
|
||||
host=POSTGRES_HOST,
|
||||
port=POSTGRES_PORT,
|
||||
|
@ -1080,7 +1080,7 @@ def setup_test_homeserver(
|
|||
|
||||
# Drop the test database
|
||||
db_conn = db_engine.module.connect(
|
||||
database=POSTGRES_BASE_DB,
|
||||
dbname=POSTGRES_BASE_DB,
|
||||
user=POSTGRES_USER,
|
||||
host=POSTGRES_HOST,
|
||||
port=POSTGRES_PORT,
|
||||
|
|
|
@ -80,7 +80,7 @@ def setupdb() -> None:
|
|||
|
||||
# Set up in the db
|
||||
db_conn = db_engine.module.connect(
|
||||
database=POSTGRES_BASE_DB,
|
||||
dbname=POSTGRES_BASE_DB,
|
||||
user=POSTGRES_USER,
|
||||
host=POSTGRES_HOST,
|
||||
port=POSTGRES_PORT,
|
||||
|
|
Loading…
Reference in a new issue