0042084d17
BLOCKER B1: the fts config swap no longer blindly DROP+ADDs the generated column. swapEmbeddingsFtsConfig now (1) reads the column's actual generation expression from pg_catalog and TRUE-no-ops when it already references the target config (real out-of-band escape hatch), and (2) gates the inline ACCESS EXCLUSIVE rewrite behind SEARCH_EMBEDDINGS_FTS_INLINE_REWRITE (default 'true'; only a literal 'false' opts out), warning that the operator owns the swap. up() now creates ru_en only when missing (drop-recreate would fail on the fts hard dependency on a re-run), so up() is genuinely idempotent. down() guards the config DROP when fts still references ru_en (gated-off path), staying non-fatal. W2: corrected the header — Kysely runs EACH migration in its own transaction (not the whole set in ONE); the single-UPDATE atomicity conclusion is unchanged. Rewrote the runbook: inline path is a full-table ACCESS EXCLUSIVE rewrite of page_embeddings; removed the false "IF-EXISTS no-op" claim. Extends the roundtrip test with idempotent-skip (2nd up() no-op) and env-gate =false (embeddings rewrite skipped, pages.tsv still swapped) assertions. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A progressive Node.js framework for building efficient and scalable server-side applications.
Description
Nest framework TypeScript starter repository.
Installation
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Migrations
# This creates a new empty migration file named 'init'
$ npm run migration:create --name=init
# Generates 'init' migration file from existing entities to update the database schema
$ npm run migration:generate --name=init
# Runs all pending migrations to update the database schema
$ npm run migration:run
# Reverts the last executed migration
$ npm run migration:revert
# Reverts all migrations
$ npm run migration:revert
# Shows the list of executed and pending migrations
$ npm run migration:show
## Test
```bash
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.