Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit 4fcb1ae

Browse files
finnFizzadar
authored andcommitted
INF-1175: Allow sharded database in db migrate script
1 parent 310085b commit 4fcb1ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

synapse/_scripts/update_synapse_database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def main() -> None:
9797
# Load, process and sanity-check the config.
9898
hs_config = yaml.safe_load(args.database_config)
9999

100-
if "database" not in hs_config:
101-
sys.stderr.write("The configuration file must have a 'database' section.\n")
100+
if "database" not in hs_config and "databases" not in hs_config:
101+
sys.stderr.write("The configuration file must have a 'database' or 'databases' section.\n")
102102
sys.exit(4)
103103

104104
config = HomeServerConfig()

0 commit comments

Comments
 (0)