migratex 0.2.2

Agnostic migration toolkit library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod m1_initial;
mod m2_products;

use migratex::BoxMigration;

use crate::context::MigContext;

/// Returns the list of migrations in order.
/// IMPORTANT: Migrations must be sorted by version (ascending).
pub fn migrations() -> Vec<BoxMigration<MigContext>> {
    vec![
        Box::new(m1_initial::M1Initial),
        Box::new(m2_products::M2Products),
    ]
}