Trait schemer::Migration

source ·
pub trait Migration {
    fn id(&self) -> Uuid;
    fn dependencies(&self) -> HashSet<Uuid>;
    fn description(&self) -> &'static str;
Expand description

Metadata for defining the identity and dependence relations of migrations. Specific adapters require additional traits for actual application and reversion of migrations.

Required Methods

Unique identifier for this migration.

Set of IDs of all direct dependencies of this migration.

User-targeted description of this migration.