Sequelize Migration

JSON →
library 1.0.1 ·javascript
verified Jun 7, 2026

A module for handling database migrations using raw SQL scripts with Sequelize. This package allows you to manage versioned SQL script executions for MySQL and PostgreSQL. It creates a tracking table (`sph_script_execution`) to record which scripts have been applied, ensuring idempotent upgrades. The module takes a Sequelize instance and a module configuration including version, script directory, and per-dialect upgrade scripts. Designed for simple, file-based migration workflows. Version 1.0.1 is the latest stable release. Alternatives like Umzug or Sequelize's built-in migration CLI offer more features, but this package provides a lightweight approach for projects that prefer pure SQL. Low maintenance cadence.