diff --git a/scripts/update.sh b/scripts/update.sh index c095d94..274dfe6 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -106,5 +106,15 @@ set -a && . ./.env && set +a echo "==> recreating changed services" docker compose up -d --remove-orphans +# litellm-pgvector's Dockerfile only runs `prisma generate` (codegen) at +# build time — nothing ever applied the schema to pgvector-db itself, so the +# vector_stores/embeddings tables plain didn't exist until this was added +# (see issue #24). --accept-data-loss is the same "no rollback/backup logic, +# git revert is the recovery path" tradeoff as the rest of this script — a +# schema-incompatible change here would need a manual look regardless. +echo "==> syncing litellm-pgvector's database schema" +docker compose up -d --wait pgvector-db litellm-pgvector +docker compose exec -T litellm-pgvector prisma db push --accept-data-loss + echo "==> status" docker compose ps