Baseline

Baselines an existing database, excluding all migrations up to and including baselineVersion.

Baseline

Baseline is for introducing MigrateDB to existing databases by baselining them at a specific version. This will cause Migrate to ignore all migrations up to and including the baseline version. Newer migrations will then be applied as usual.

Resetting the baseline

When you have many migrations, it might be desirable to reset your baseline migration. This will allow you to reduce the overhead of dealing with lots of scripts, many of which might be old and irrelevant.

Learn more about resetting the baseline migration

Usage

See configuration for baseline specific configuration parameters.

Repair ➡️