Validate

Validates the applied migrations against the available ones.

Validate

Validate helps you verify that the migrations applied to the database match the ones available locally.

This is very useful to detect accidental changes that may prevent you from reliably recreating the schema.

Validate works by storing a checksum when a migration is executed. The validate mechanism checks if the migration locally still has the same checksum as the migration already executed in the database.

Custom validation rules

As the lifetime of a project increases, there will inevitably be hotfixes, deleted migrations and other changes that break the conventions of MigrateDB’s validation.

In these cases you need a way to tell MigrateDB that these migrations are valid.

Learn more about custom validate rules

Usage

See configuration for validate specific configuration parameters.