From 4d96d6a10c48fb0f19472ea18715cb1cd8d35da3 Mon Sep 17 00:00:00 2001 From: doomedraven Date: Sat, 28 Sep 2024 18:55:44 +0200 Subject: [PATCH] fix collation version on db upgrade --- installer/cape2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installer/cape2.sh b/installer/cape2.sh index 8d4596a141c..d89faff9ab8 100644 --- a/installer/cape2.sh +++ b/installer/cape2.sh @@ -889,6 +889,9 @@ function install_postgresql() { python3 -m pip install pg_activity psycopg2-binary sudo systemctl enable postgresql.service sudo systemctl start postgresql.service + + sudo -u postgres -H sh -c "psql -d \"${USER}\" -c \"ALTER DATABASE cape REFRESH COLLATION VERSION;\"" + sudo -u postgres -H sh -c "psql -d \"${USER}\" -c \"ALTER DATABASE postgres REFRESH COLLATION VERSION;\"" } function dependencies() {