mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-03 03:40:31 +02:00
Automatic udpate
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
## 15.7-23 (15-02-2025)
|
|
||||||
- Major update, please backup first
|
- Major update, please backup first
|
||||||
- Automatic handling of upgrades
|
- Automatic handling of upgrades
|
||||||
- Restore clean shutdown
|
- Restore clean shutdown
|
||||||
|
|||||||
@@ -38,5 +38,5 @@
|
|||||||
"slug": "postgres",
|
"slug": "postgres",
|
||||||
"udev": true,
|
"udev": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres",
|
"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() {
|
enable_vector_extension() {
|
||||||
bashio::log.info "Enabling 'vectors' 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 "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
|
# Function: Store the current pgvector.rs version in a file
|
||||||
|
|||||||
Reference in New Issue
Block a user