From 03a5c3d1440c49bac5647aeb8e723a425b23206a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 16 Jul 2024 23:02:25 +0200 Subject: [PATCH] Ensure postgresql is upgraded to 15. Some apps required pg 16, so pg_upgradecluster tries to upgrade 13 to 16 and fails (cluster already exists) --- src/migrations/0029_postgresql_13_to_15.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrations/0029_postgresql_13_to_15.py b/src/migrations/0029_postgresql_13_to_15.py index dca52c189..f74d33a76 100644 --- a/src/migrations/0029_postgresql_13_to_15.py +++ b/src/migrations/0029_postgresql_13_to_15.py @@ -56,7 +56,7 @@ class MyMigration(Migration): "LC_ALL=C pg_dropcluster --stop 15 main || true" ) # We do not trigger an exception if the command fails because that probably means cluster 15 doesn't exists, which is fine because it's created during the pg_upgradecluster) time.sleep(3) - self.runcmd("LC_ALL=C pg_upgradecluster -m upgrade 13 main") + self.runcmd("LC_ALL=C pg_upgradecluster -m upgrade 13 main -v 15") self.runcmd("LC_ALL=C pg_dropcluster --stop 13 main") self.runcmd("systemctl start postgresql")