pub struct ChangeColumns {
    pub pre_columns: Option<u32>,
    pub post_columns: Option<u32>,
    pub version: u32,
}
Expand description

An even simpler migration which just changes the number of columns.

Fields

pre_columns: Option<u32>

The amount of columns before this migration.

post_columns: Option<u32>

The amount of columns after this migration.

version: u32

The version after this migration.

Trait Implementations

Number of columns in the database before the migration.

Number of columns in database after the migration.

Version of the database after the migration.

Whether this migration alters any existing columns. if not, then column families will simply be added and migrate will never be called. Read more

Migrate a source to a destination.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.