umzug

Installation
SKILL.md

Umzug v3 — Claude Skill (Sequelize v7 Adapted)

Key Concepts

  • Umzug is not an ORM — it orchestrates running/reverting migration functions and tracking which have been executed
  • The context option passes any value to every migration's up/down — for Sequelize, use sequelize.getQueryInterface()
  • SequelizeStorage tracks executed migrations in a database table (SequelizeMeta by default)
  • Migrations are discovered via glob patterns or provided as an inline array
  • Built-in CLI via umzug.runAsCLI() — supports up, down, pending, executed, create
  • Import from 'umzug': Umzug, SequelizeStorage, JSONStorage, MongoDBStorage, memoryStorage, MigrationError

Sequelize v7 Specifics

  • Import Sequelize from @sequelize/core (not sequelize)
  • Import dialect classes: PostgresDialect, SqliteDialect, MysqlDialect, etc.
  • DataTypes from @sequelize/core for migration column definitions
  • Sequelize v7 constructor takes a single options object (no URL string as first arg)
  • CLS transactions enabled by default — use sequelize.transaction() for managed, sequelize.startUnmanagedTransaction() for unmanaged
  • dialectOptions removed — settings go in top-level options
Related skills

More from totophe/skills

Installs
7
Repository
totophe/skills
First Seen
Feb 19, 2026