Skip to main content

Module migrate

Module migrate 

Source
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§

AppliedMigration
A migration that has been applied, as read from the tracking table.
ChecksumDrift
A drifted migration found by MigrationEngine::verify_applied: either its .up.sql file is missing on disk, or its on-disk checksum no longer matches the value recorded when it was applied.
MigrationEngine
Migration engine bound to an open connection.
MigrationFile
A single discovered migration file.

Enums§

Direction