Skip to main content

diff_relational_operations

Function diff_relational_operations 

Source
pub fn diff_relational_operations(
    previous: &ModelSnapshot,
    current: &ModelSnapshot,
) -> Vec<MigrationOperation>
Expand description

Computes additive/removal operations for indexes and foreign keys in tables present in both snapshots. Table creation/deletion remains the responsibility of diff_schema_and_table_operations.