Expand description
A single migration file: id, dependencies, operations, checksum.
Structs§
- Migration
- On-disk (and in-memory) migration.
Functions§
- next_id
- Next id: max existing sequence + 1, zero-padded to at least 4 digits, plus
slug. - parse_
sequence - Leading decimal digits of a migration id.
- sanitize_
slug - Keep ASCII alphanumeric and underscores; everything else becomes
_. - slug_
from_ operations - Slug derived from the first operation (
initial,add_book_isbn, …).