Skip to main content

diff_schema_ops

Function diff_schema_ops 

Source
pub fn diff_schema_ops(
    target: &SchemaDescriptor,
    current: &DbState,
) -> Result<Vec<DiffOp>, String>
Expand description

Compute ordered DiffOps suitable for a migration file body. Index creation on pre-existing tables uses CONCURRENTLY and is marked non_transactional = true so create can insert step-boundary markers.