n8n:db-migrations

Automate creation and execution of n8n database migrations for PostgreSQL and SQLite.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/Rub-git/n8n-auto --skill n8n-db-migrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n:db-migrations
Source: https://github.com/Rub-git/n8n-auto/tree/main/.agents/skills/db-migrations
Command: npx skills add https://github.com/Rub-git/n8n-auto --skill n8n-db-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing and applying database migrations for n8n, reducing manual efforts and potential errors.

Core Features & Use Cases

  • Migration Generation: Automatically generates migration files with a structured format.
  • Schema and Data Migrations: Supports both schema and data migrations.
  • Cross-Database Compatibility: Ensures migrations work on different database systems.
  • Pre-Flight Checklist: Provides a comprehensive checklist to ensure migration quality.
  • Use Case: Use this Skill when adding a new database column or when performing a migration in the n8n database.

Quick Start

Generate a new database migration using the n8n db-migrations command.

Frequently Asked Questions about n8n:db-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate database migrations for n8n using TypeScript?

You can automate database migrations for n8n by generating structured migration files with TypeScript and applying them via the n8n framework. This Skill streamlines the process, reducing manual effort and potential errors while ensuring cross-database compatibility.

Does n8n database migration support both PostgreSQL and SQLite?

Yes, n8n database migration supports both PostgreSQL and SQLite. The Skill ensures cross-database compatibility by verifying that migrations work correctly across different database systems, allowing you to maintain consistency regardless of the underlying database engine.

What is the difference between reversible and irreversible database migrations in n8n?

Reversible database migrations in n8n provide a rollback mechanism to undo schema or data changes, while irreversible migrations apply changes permanently. This Skill supports both types, allowing you to choose the appropriate migration strategy based on your specific database modification needs.

How do I generate a new database migration file in n8n?

To generate a new database migration file in n8n, you use the `n8n db-migrations` command. This Skill automatically creates a structured migration file that you can use to add a new database column or perform other schema and data modifications within the n8n workflow management system.

When do I need to run a schema migration versus a data migration in n8n?

You need a schema migration in n8n when altering the database structure, such as adding a new column, and a data migration when modifying existing records. This Skill supports both types, ensuring you can handle structural changes and data updates comprehensively.

What are the limitations of using n8n for database migrations?

The primary limitation of using n8n for database migrations is that it is confined to the n8n workflow management system's database operations and relies on TypeScript. While it provides a pre-flight checklist to ensure quality, it is specifically tailored for PostgreSQL and SQLite compatibility rather than general-purpose database management.