Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Vector v0.1.15-beta.7

Choose a tag to compare

@rhlsthrm rhlsthrm released this 08 Feb 20:14
· 1581 commits to main since this release

Warning, this release requires a manual database update!

Database Migration Instructions

This step needs to be done one time on production DBs due to DB tooling change.

  • Run make dls and observe node image crashing.
  • Run bash ops/logs.sh node and make note of a log that says something similar to VECTOR_DATABASE_URL: postgresql://vector:e9ecd9758ba79cceb9757d83c180e3eb28b15d1643643ca7de160121cf78c049@database-node:5432/vector.
  • Run docker run --network vector -it --entrypoint /bin/bash vector_node:0.1.15-beta.7 -s to connect a new node container without the crashing entry.
  • Run VECTOR_DATABASE_URL=postgresql://vector:e9ecd9758ba79cceb9757d83c180e3eb28b15d1643643ca7de160121cf78c049@database-node:5432/vector npx prisma migrate resolve --preview-feature --applied 20210208123402_init --schema prisma-postgres/schema.prisma to baseline the migration. Substitute your database URL from step 2.
  • Run make dls and observe router image crashing.
  • Run bash ops/logs.sh router and make note of a log that says something similar to VECTOR_DATABASE_URL: postgresql://vector:e9ecd9758ba79cceb9757d83c180e3eb28b15d1643643ca7de160121cf78c049@database-router:5432/vector.
  • Run docker run --network vector -it --entrypoint /bin/bash vector_router:0.1.15-beta.7 -s to connect a new router container without the crashing entry.
  • Run VECTOR_DATABASE_URL=postgresql://vector:e9ecd9758ba79cceb9757d83c180e3eb28b15d1643643ca7de160121cf78c049@database-router:5432/vector npx prisma migrate resolve --preview-feature --applied 20210208141017_init --schema prisma-postgres/schema.prisma
  • Run make restart-router.

(If anyone has a better suggestion to baseline a Prisma migration in prod, please let us know!)

Reference: https://www.prisma.io/docs/concepts/components/prisma-migrate/prisma-migrate-flows#baselining

Changelog

  • [node, router] Prisma upgrade.