Skip to main content

Module migration

Module migration 

Source
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, …).