Skip to main content

compile_schema_change

Function compile_schema_change 

Source
pub fn compile_schema_change(
    dialect: Dialect,
    schema: &AppSchema,
    change: &SchemaChange,
) -> Result<Vec<Statement>, DatabaseError>
Expand description

Compiles one additive logical migration step into SQL statements. The executing adapter must guard these statements with its migration ledger.