Skip to main content

schema_after_step

Function schema_after_step 

Source
pub fn schema_after_step(
    final_schema: &AppSchema,
    migration: &Migration,
    index: usize,
) -> Result<AppSchema, DatabaseError>
Expand description

Reconstructs the declared schema after one step, excluding later schema changes. Conversion must not inspect fields or tables that the same migration has not created yet.