pub struct Migration {
pub version: u32,
pub name: &'static str,
pub up_sql: &'static str,
pub down_sql: &'static str,
pub online_safe: bool,
}Expand description
A checked-in migration. Existing versions are immutable: add a new version instead of editing an applied one, even when the edit appears additive.
Fields§
§version: u32§name: &'static str§up_sql: &'static str§down_sql: &'static str§online_safe: boolWhether the UP direction may run while workers and clients continue using the schema. DOWN is always operator-confirmed and offline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl UnsafeUnpin for Migration
impl UnwindSafe for Migration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more