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.