From 58ad1379367f6a1c18ff9ed4a7ddb68c5dffb6aa Mon Sep 17 00:00:00 2001 From: vhsdream Date: Thu, 22 May 2025 13:21:26 -0400 Subject: [PATCH] Immich: alternate method of migration --- ct/immich.sh | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/ct/immich.sh b/ct/immich.sh index b681746..cbab5c7 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -184,15 +184,38 @@ function update_script() { msg_ok "Stopped ${APP}" if [[ "$(cat /opt/${APP}_version.txt)" < "1.133.0" ]]; then msg_info "Upgrading to the VectorChord PostgreSQL extension" + NUMBER="$( + sed -n '2p' <( + sudo -u postgres psql -A -d immich < 0 + AND c.relname = 'smart_search'::text + AND f.attname = 'embedding'::text; +EOF + ) + )" + $STD sudo -u postgres psql -d immich <