diff --git a/postgres/CHANGELOG.md b/postgres/CHANGELOG.md index cf13cab16..d1aede8f3 100644 --- a/postgres/CHANGELOG.md +++ b/postgres/CHANGELOG.md @@ -1,4 +1,3 @@ -## 15.7-23 (15-02-2025) - Major update, please backup first - Automatic handling of upgrades - Restore clean shutdown diff --git a/postgres/config.json b/postgres/config.json index ef8e89e50..cbe70ed92 100644 --- a/postgres/config.json +++ b/postgres/config.json @@ -38,5 +38,5 @@ "slug": "postgres", "udev": true, "url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres", - "version": "15.7-23" + "version": "15.7-24" } diff --git a/postgres/rootfs/etc/cont-init.d/99-run.sh b/postgres/rootfs/etc/cont-init.d/99-run.sh index 68b5fb34c..c72b00a04 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -147,6 +147,7 @@ check_vector_extension() { enable_vector_extension() { bashio::log.info "Enabling 'vectors' extension..." psql "postgres://$DB_USERNAME:$DB_PASSWORD@$DB_HOSTNAME:$DB_PORT" -c "DROP EXTENSION IF EXISTS vectors; CREATE EXTENSION vectors;" >/dev/null 2>&1 + psql "postgres://$DB_USERNAME:$DB_PASSWORD@$DB_HOSTNAME:$DB_PORT" -c "ALTER EXTENSION vectors UPDATE; SELECT pgvectors_upgrade();" >/dev/null 2>&1 } # Function: Store the current pgvector.rs version in a file