From 6559a532ce9d7c90447d2732a714a39c98be820e Mon Sep 17 00:00:00 2001 From: alexbelgium Date: Mon, 26 May 2025 10:26:38 +0200 Subject: [PATCH 1/2] Addition of vectochord --- immich/CHANGELOG.md | 2 ++ immich/rootfs/etc/cont-init.d/99-run.sh | 16 +++++++++++++++- immich_cuda/CHANGELOG.md | 2 ++ immich_openvino/CHANGELOG.md | 2 ++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/immich/CHANGELOG.md b/immich/CHANGELOG.md index d1d6de456..0d33555e0 100644 --- a/immich/CHANGELOG.md +++ b/immich/CHANGELOG.md @@ -1,3 +1,5 @@ +- MAJOR CHANGE : please backup your database before updating +- Added VectorChord support https://github.com/immich-app/immich/releases/tag/v1.133.0 ## 1.133.1 (24-05-2025) - Update to latest version from imagegenius/docker-immich (changelog : https://github.com/imagegenius/docker-immich/releases) diff --git a/immich/rootfs/etc/cont-init.d/99-run.sh b/immich/rootfs/etc/cont-init.d/99-run.sh index 3f6c56916..9f3e804a4 100755 --- a/immich/rootfs/etc/cont-init.d/99-run.sh +++ b/immich/rootfs/etc/cont-init.d/99-run.sh @@ -164,6 +164,20 @@ check_vector_extension() { fi } +# Function to check if vchord extension is enabled +check_vchord_extension() { + echo "Checking if 'vchord' extension is enabled..." + RESULT=$(psql "postgres://$DB_USERNAME:$DB_PASSWORD@$DB_HOSTNAME:$DB_PORT" -tAc "SELECT extname FROM pg_extension WHERE extname = 'vchord';") + + if [[ "$RESULT" == "vchord" ]]; then + echo "✅ 'vchord' extension is enabled." + exit 0 + else + bashio::log.warning "❌ 'vchord' extension is NOT enabled." + return 1 + fi +} + ######################### # Main script execution # ######################### @@ -185,4 +199,4 @@ export_db_env setup_root_user setup_database -check_vector_extension +check_vchord_extension || check_vector_extension diff --git a/immich_cuda/CHANGELOG.md b/immich_cuda/CHANGELOG.md index a24e37d1d..3c63c9403 100644 --- a/immich_cuda/CHANGELOG.md +++ b/immich_cuda/CHANGELOG.md @@ -1,3 +1,5 @@ +- MAJOR CHANGE : please backup your database before updating +- Added VectorChord support https://github.com/immich-app/immich/releases/tag/v1.133.0 ## 1.133.1 (24-05-2025) - Update to latest version from imagegenius/docker-immich (changelog : https://github.com/imagegenius/docker-immich/releases) diff --git a/immich_openvino/CHANGELOG.md b/immich_openvino/CHANGELOG.md index 39abe8d02..cf50a7d48 100644 --- a/immich_openvino/CHANGELOG.md +++ b/immich_openvino/CHANGELOG.md @@ -1,3 +1,5 @@ +- MAJOR CHANGE : please backup your database before updating +- Added VectorChord support https://github.com/immich-app/immich/releases/tag/v1.133.0 ## 1.133.1 (24-05-2025) - Update to latest version from imagegenius/docker-immich (changelog : https://github.com/imagegenius/docker-immich/releases) From 154f5f2d203379b5f1f9cd98a54b98824c06c471 Mon Sep 17 00:00:00 2001 From: alexbelgium Date: Mon, 26 May 2025 10:27:59 +0200 Subject: [PATCH 2/2] vectorchord --- immich_openvino/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/immich_openvino/config.json b/immich_openvino/config.json index 1f19eab6a..b6ac4c7d9 100644 --- a/immich_openvino/config.json +++ b/immich_openvino/config.json @@ -147,7 +147,7 @@ "udev": true, "url": "https://github.com/alexbelgium/hassio-addons", "usb": true, - "version": "1.133.1", + "version": "1.133.1_vectorchord", "video": true, "webui": "http://[HOST]:[PORT:8080]" }