Expand description
Lightweight, multi-backend SQL migration runner.
A migrations/ directory of timestamp-ordered .up.sql / .down.sql
files is tracked in a ferrule_migrations table inside the target
database. Pure SQL, no ORM, no DSL.
File naming: YYYYMMDDHHMMSS_<name>.{up,down}.sql — lex sort = order.
Structs§
- Applied
Migration - A migration that has been applied, as read from the tracking table.
- Checksum
Drift - A drifted migration found by
MigrationEngine::verify_applied: either its.up.sqlfile is missing on disk, or its on-disk checksum no longer matches the value recorded when it was applied. - Migration
Engine - Migration engine bound to an open connection.
- Migration
File - A single discovered migration file.