Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Allow to take backup even the project is VCS workflow and does not have migration info

天舟341e3c0ae683
diff --git a/server/database.go b/server/database.go
index 9c6172835c..fceb287fb9 100644
--- a/server/database.go
+++ b/server/database.go
@@ -294,9 +294,6 @@ func (s *Server) registerDatabaseRoutes(g *echo.Group) {
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to get migration history for database %q", database.Name)).SetInternal(err)
}
- if database.Project.WorkflowType == api.VCS_WORKFLOW && version == "" {
- return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Migration history configuration is required for backups if database %q uses VCS workflow", database.Name)).SetInternal(err)
- }
backupCreate.MigrationHistoryVersion = version
backup, err := s.BackupService.CreateBackup(context.Background(), backupCreate)