mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-21 02:04:08 -04:00
Remove support for PostgreSQL 10 (#14392)
Signed-off-by: Sean Quah <seanq@matrix.org>
This commit is contained in:
parent
d85cba1aa0
commit
a5fcdea090
5 changed files with 15 additions and 4 deletions
|
@ -81,8 +81,8 @@ class PostgresEngine(
|
|||
allow_unsafe_locale = self.config.get("allow_unsafe_locale", False)
|
||||
|
||||
# Are we on a supported PostgreSQL version?
|
||||
if not allow_outdated_version and self._version < 100000:
|
||||
raise RuntimeError("Synapse requires PostgreSQL 10 or above.")
|
||||
if not allow_outdated_version and self._version < 110000:
|
||||
raise RuntimeError("Synapse requires PostgreSQL 11 or above.")
|
||||
|
||||
with db_conn.cursor() as txn:
|
||||
txn.execute("SHOW SERVER_ENCODING")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue