dana - Database Migration Tool

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

Dana is a simple, small, and framework-agnostic database schema migration CLI for Node.js, currently supporting MySQL only. It auto-generates migration files by tracking changes in user-defined model files (JavaScript objects describing tables), similar to how Git tracks file changes. Version 1.0.0 is current; no frequent releases reported. Key differentiators: no API to learn (models are plain JS objects), migrations are YAML-based with embedded SQL, built-in rollback support, and model validation before migration generation. Unlike Rails or Knex migrations, users never write migration code manually — dana produces diff-based migration files from model changes.