Expand description
Developer: s4gor Github: https://github.com/s4gor
Migration planning
The planner takes a schema diff and creates an executable migration plan. The plan is a sequence of operations that will transform the current schema into the target schema.
§Design Rationale
Separating planning from execution allows:
- Dry-run mode to show what would happen
- Validation of plans before execution
- Different planning strategies (safe ordering, dependency resolution)
- Testing plans without executing them
Structs§
- Check
Constraint Definition - Check constraint definition
- Column
Changes - Column changes for modify operations
- Column
Definition - Column definition for migration operations
- Default
Change - Default value change (old and new)
- Foreign
KeyDefinition - Foreign key definition
- Index
Definition - Index definition
- Migration
Plan - A migration plan containing the sequence of operations to execute
- Migration
Step - A single step in a migration plan
- Primary
KeyDefinition - Primary key definition
- Type
Change - Type change (old and new)
- Unique
Constraint Definition - Unique constraint definition
Enums§
- Migration
Operation - A single migration operation
Traits§
- Planner
- Trait for planning migrations