Skip to main content

diff

Function diff 

Source
pub fn diff(old: &Schema, new: &Schema) -> Vec<Change>
Expand description

Compute the change-list between two schemas. Order:

  1. ModelAdded (new models surface their full field-add list too)
  2. Per-model field add/remove + relation add/remove for fields that exist in both versions
  3. ModelRemoved (last so the human eye sees additions before destructive lines)