# Helix 1.20.0: Managed database

> Give a project its own Postgres database: describe the tables in `db/schema.ts`, query them with Drizzle through `ctx.db()`, and run it locally in `helix dev`.

- Released: 4 Nov 2026 (2026-11-04)
- Packages: @trayai/helix-cli@1.20.0, @trayai/helix-sdk@1.20.0

## Headline changes

### Added: `ctx.db()` and a managed Postgres database per project

Add a `db/schema.ts` and a project gets its own Postgres database with `pgvector`. `ctx.db()` takes no argument and returns a typed Drizzle query builder over it. The first deploy creates the database, and every deploy applies your schema changes before the new code goes live. A call made while an idle database wakes up is retried automatically; other failures are not.

Docs: https://helix.tray.ai/documentation/guides/database/

## Other changes

### Added

- `helix dev` runs `ctx.db()` on an in-memory database built from `db/schema.ts` (docs: https://helix.tray.ai/documentation/reference/cli/dev/)
- `helix db migrations` lists the schema migrations applied to your database (docs: https://helix.tray.ai/documentation/reference/cli/db/)
- `helix init` adds `drizzle-orm` and `drizzle-kit` to new projects (docs: https://helix.tray.ai/documentation/guides/database/)

### Deprecated

- `ctx.db(alias)`, the aliased Redshift client, is deprecated (docs: https://helix.tray.ai/documentation/reference/context/db/)
  It still works and logs one warning per alias. There is no replacement yet, and it will be removed in a future major version. `ctx.db()` with no argument is not affected.

## Maintenance

- The `ctx.kv()` docs now say the local store resets on every file save in `helix dev`

---

Canonical: https://helix.tray.ai/documentation/releases/1200/
This file: https://helix.tray.ai/documentation/releases/1200.md
The full changelog: https://helix.tray.ai/documentation/releases.md
