|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.validation.DbValidator
public class DbValidator
Main workflow for validating the applied migrations against the available classpath migrations in order to detect accidental migration changes.
| Constructor Summary | |
|---|---|
DbValidator(ValidationMode validationMode,
MetaDataTable metaDataTable)
Creates a new database validator. |
|
| Method Summary | |
|---|---|
java.lang.String |
validate(java.util.List<Migration> resolvedMigrations)
Validate the checksum of all existing sql migration in the metadata table with the checksum of the sql migrations in the classpath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbValidator(ValidationMode validationMode,
MetaDataTable metaDataTable)
validationMode - The ValidationMode for checksum validation.metaDataTable - Supports reading and writing to the metadata table.| Method Detail |
|---|
public java.lang.String validate(java.util.List<Migration> resolvedMigrations)
resolvedMigrations - All migrations available on the classpath, sorted by version, newest first.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||