Skip to main content

validate_plan

Function validate_plan 

Source
pub fn validate_plan(plan: &SchemaMigrationPlan) -> Result<(), MigrationError>
Expand description

Validate that a migration plan is internally self-consistent.

Checks for:

  • Duplicate AddPredicate steps for the same name
  • Duplicate RemovePredicate steps for the same name
  • A predicate both added and removed in the same plan