Skip to main content

Module registry

Module registry 

Source
Expand description

Migration registry containing all defined migrations.

Responsibilities:

  • Define the static list of all migrations in chronological order.
  • Provide a central place to register new migrations.

Not handled here:

  • Migration execution logic (see super::mod.rs).
  • Individual migration implementations (see config_migrations.rs, file_migrations.rs).

Invariants/assumptions:

  • Migrations are ordered chronologically (oldest first).
  • Each migration has a unique ID that never changes.
  • New migrations are appended to the end of the list.

Statics§

MIGRATIONS
The static registry of all migrations.

Functions§

get_all_migration_ids
Get all migration IDs.
get_migration_by_id
Get a migration by its ID.