← All tools

Database Migration Sequencer

Validate migration metadata, calculate deterministic forward and rollback order, and identify safe parallel groups without connecting to a database.

Migration definitions

JSON: an array or {"migrations": [...]}. Fields: id, dependencies, rollback_dependencies, file, rollback_file, description, irreversible.

No SQL execution or interpretation: SQL-comment mode reads only standalone lines beginning with -- migration:, -- depends:, -- rollback-depends:, -- file:, -- rollback-file:, -- description:, or -- irreversible. Every other line is ignored.