Skip to content

Commit

Permalink
Make command-line suggestions copy-pastable.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliahayward committed Oct 26, 2020
1 parent f77ed0e commit 555b2b9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,16 +363,16 @@ public String validate() {

if (!context.ignored && MigrationState.IGNORED == state) {
if (getVersion() != null) {
return "Detected resolved migration not applied to database: " + getVersion() + ". To ignore this migration, set ignoreIgnoredMigrations to true. To allow executing this migration, set outOfOrder to true.";
return "Detected resolved migration not applied to database: " + getVersion() + ". To ignore this migration, set -ignoreIgnoredMigrations=true. To allow executing this migration, set -outOfOrder=true.";
}
return "Detected resolved repeatable migration not applied to database: " + getDescription() + ". To ignore this migration, set ignoreIgnoredMigrations to true.";
return "Detected resolved repeatable migration not applied to database: " + getDescription() + ". To ignore this migration, set -ignoreIgnoredMigrations=true.";
}

if (!context.pending && MigrationState.PENDING == state) {
if (getVersion() != null) {
return "Detected resolved migration not applied to database: " + getVersion() + ". To fix this error, either run migrate, or set ignorePendingMigrations to true.";
return "Detected resolved migration not applied to database: " + getVersion() + ". To fix this error, either run migrate, or set -ignorePendingMigrations=true.";
}
return "Detected resolved repeatable migration not applied to database: " + getDescription() + ". To fix this error, either run migrate, or set ignorePendingMigrations to true.";
return "Detected resolved repeatable migration not applied to database: " + getDescription() + ". To fix this error, either run migrate, or set -ignorePendingMigrations=true.";
}

if (!context.pending && MigrationState.OUTDATED == state) {
Expand Down

0 comments on commit 555b2b9

Please sign in to comment.