Skip to content

Commit 72589fa

Browse files
committed
fix: require PostgreSQL 15
This is in line with upcoming Weblate 2026.12 requirements.
1 parent 143b969 commit 72589fa

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎start‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ check_postgres_version() {
515515
>&2 echo "Postgres $pgversion is up"
516516

517517
# Check if supported PostgreSQL version is used.
518-
if ((10#$pgversion < 120000)); then
519-
>&2 echo "PostgreSQL 12 or newer is required to run Weblate"
518+
if ((10#$pgversion < 150000)); then
519+
>&2 echo "PostgreSQL 15 or newer is required to run Weblate"
520520
>&2 echo "See https://docs.weblate.org/en/latest/admin/install/docker.html#upgrading-postgresql-container"
521521
exit 1
522522
fi

‎tests/integration/test-postgres-version.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ def check_version(self, version):
3131
)
3232

3333
def test_supported_versions(self):
34-
for version in ("120000", "180000", "000120000"):
34+
for version in ("150000", "180000", "000120000"):
3535
with self.subTest(version=version):
3636
result = self.check_version(version)
3737
self.assertEqual(result.returncode, 0, result.stderr)
3838
self.assertIn("CHECK_COMPLETE", result.stdout)
3939

4040
def test_unsupported_versions(self):
41-
for version in ("110000", "000110000"):
41+
for version in ("110000", "140000", "000110000"):
4242
with self.subTest(version=version):
4343
result = self.check_version(version)
4444
self.assertNotEqual(result.returncode, 0)

0 commit comments

Comments
 (0)