DiffWarning in oxide_sql_core::migrations::diff - Rust

pub enum DiffWarning {
    PrimaryKeyChange {
        table: String,
        column: String,
        new_value: bool,
    },
    AutoincrementChange {
        table: String,
        column: String,
        new_value: bool,
    },
    ColumnOrderChanged {
        table: String,
        old_order: Vec<String>,
        new_order: Vec<String>,
    },
}
Expand description

Informational warnings about changes that the diff engine detected but cannot (or should not) translate into DDL operations automatically.

§

A column’s primary key status changed. This typically requires table recreation on most databases.

Fields

New value of the primary_key flag.

§

A column’s autoincrement status changed. Most databases cannot alter this without recreating the table.

Fields

New value of the autoincrement flag.

§

The relative ordering of columns changed. Most databases cannot reorder columns without recreating the table.

Fields

§old_order: Vec<String>

Column names in the old order.

§new_order: Vec<String>

Column names in the new order.

Source§
Source§
Source§
Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

§
§
§
§
§
§