pub fn compute_migration(
old_schema: &SymbolTable,
new_schema: &SymbolTable,
config: &MigrationConfig,
) -> Result<SchemaMigrationPlan, MigrationError>Expand description
Compute the full migration plan needed to go from old_schema to new_schema.
Steps:
- Build snapshots of both schemas.
- Detect predicate additions, removals, and arity changes.
- Detect domain additions and removals.
- Detect variable/rule additions and removals.
- Optionally resolve renames by similarity.
- Synthesise
SchemaMigrationSteps. - Enforce
allow_breaking_changespolicy.