#[derive(Default)]
pub struct GraphileWorkerMigration {
pub name: &'static str,
pub is_breaking: bool,
pub stmts: &'static [&'static str],
}
impl GraphileWorkerMigration {
pub fn name(&self) -> &'static str {
self.name
}
pub fn is_breaking(&self) -> bool {
self.is_breaking
}
pub fn migration_number(&self) -> u32 {
self.name[1..7].parse().expect("Invalid migration name")
}
}