This repository was archived by the owner on Dec 27, 2022. It is now read-only.
Repository navigation
Vector v0.1.15-beta.7
·
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 dlsand observe node image crashing. - Run
bash ops/logs.sh nodeand make note of a log that says something similar toVECTOR_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 -sto 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.prismato baseline the migration. Substitute your database URL from step 2. - Run
make dlsand observe router image crashing. - Run
bash ops/logs.sh routerand make note of a log that says something similar toVECTOR_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 -sto 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.