mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-22 20:46:28 +01:00
Automatic udpate
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
## 15.7-23 (15-02-2025)
|
||||
- Major update, please backup first
|
||||
- Automatic handling of upgrades
|
||||
- Restore clean shutdown
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user