Skip to content
Kitbay

n8n:db-migrations

LicenseRef-n8n-Sustainable-Use-LicenseUpdated on Nov 11, 2026210,138GitHub stars

A contributor skill for writing database migrations in the n8n codebase.

What the skill teaches

A contributor skill for writing database migrations in the n8n codebase. It covers the migrations folder layout, the migration types and context API, type mapping for its DSL, a checklist before starting, how to create, run and revert migrations, which directory to pick, class structure, and many rules: prefer its query helper, never import entities as values, escape identifiers, keep independent schema changes apart and never edit a migration that has been merged.

Capabilities

  • Write TypeORM migrations for the n8n database
  • Add columns, tables, indexes and backfills
  • Apply and revert migrations locally