Skip to content

Commit

Permalink
Merge pull request #1287 from jackyalbo/ja-pr1221-pg-upgrade
Browse files Browse the repository at this point in the history
Fix - don't run db 15 upgrade for mongoDB
  • Loading branch information
jackyalbo authored Jan 11, 2024
2 parents c0fc2d4 + c2c701e commit cdd276d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/system/phase2_creating.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ func (r *Reconciler) ReconcilePhaseCreatingForMainClusters() error {
return err
}

if err := r.UpgradePostgresDB(); err != nil {
return err
if r.NooBaa.Spec.DBType == "postgres" {
if err := r.UpgradePostgresDB(); err != nil {
return err
}
}

if err := r.ReconcileDB(); err != nil {
Expand Down

0 comments on commit cdd276d

Please sign in to comment.