Edit your schema. Get a safe migration.

Every change to schema.ts becomes a lock-aware migration, a lint report, and fresh types. Typed in TypeScript, with no runtime dependencies.

Let's start

1 of 21

schema.ts+1 −0

  1. ⋯ 9 unchanged lines
  2. title: t.text().nullable(),
  3. authorId: t.bigint(),
  4. added: body: t.text().nullable(),
  5. });
  6. ⋯ 1 unchanged line

okm generate add_body

planmigrations/0002_add_body.sql · 1 step · expand

  1. expandadd-columnlock access exclusive

    alter table "public"."notes" add column "body" text;

lintclean

no findings, nothing to review

types.okm/types.d.ts · Notes

  1. added: readonly body: string | null;

+ 2 more changed lines

a nullable column is one expand step, and there is nothing to lintdocs →

PostgreSQL 15–18Apache-2.0v0.9.1