Skip to content

Commit

Permalink
RHINENG-9461: error comparison in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Apr 17, 2024
1 parent b80bc9d commit b9e9ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database_admin/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func migrateAction(conn database.Driver, sourceURL string) int {
fmt.Printf("DB migration in progress, waiting for schema=%d\n", expectedSchema)
dbSchema, err := dbSchemaVersion(conn, sourceURL)
if err != nil {
if errors.Is(err, migrate.ErrDirty{}) && forceMigrationVersion != "" {
if errors.As(err, &migrate.ErrDirty{}) && forceMigrationVersion != "" {
return MIGRATE
}
fmt.Fprintf(os.Stderr, "Error getting current DB version: %v\n", err.Error())
Expand Down

0 comments on commit b9e9ff3

Please sign in to comment.