You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// IsReady returns true when all entries have finished.
@@ -224,6 +226,13 @@ func (m *upgradeManager) StartDatabaseUpgrade(ctx context.Context, force bool) e
224
226
iferr!=nil {
225
227
returnmaskAny(err)
226
228
}
229
+
iflen(binaryDBVersions) >1 {
230
+
returnmaskAny(client.NewBadRequestError(fmt.Sprintf("Found multiple database versions (%v). Make sure all machines have the same version", binaryDBVersions)))
231
+
}
232
+
iflen(binaryDBVersions) ==0 {
233
+
returnmaskAny(client.NewBadRequestError("Found no database versions. This is likely a bug"))
234
+
}
235
+
toVersion:=binaryDBVersions[0]
227
236
228
237
// Fetch (running) database versions of all starters
log.Info().Msgf("Database automatic upgrade from %s %s to version %s has been %s", fromVersionPrefix, strings.Join(fromVersions, ", "), status.ToVersion, action)
0 commit comments