auto_diff_schema

Function auto_diff_schema 

Source
pub fn auto_diff_schema(
    current: &SchemaSnapshot,
    desired: &SchemaSnapshot,
) -> SchemaDiff
Expand description

Compares two full schema snapshots and produces the operations needed to migrate from current to desired.

Operation ordering: CreateTable > AddColumn > AlterColumn > DropColumn > DropTable (avoids FK constraint violations).