klyn.data.SchemaManager.apply
method

    public apply(plan as SchemaPlan) as Void:

Description

Applies a plan produced for the current immutable factory model.

Provider and model fingerprints are verified before the first command.

Parameters

Parameter | Description
--- | ---
`plan` | Plan returned by `diff()`.

Throws

- SchemaExecutionException for stale, foreign or unsupported plans.

Example

    plan = schema.diff()
    if not plan.empty:
    schema.apply(plan)