Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Immediately sync the schema after updating any instance connection info
天舟281757d27dff
diff --git a/server/instance.go b/server/instance.goindex 8142daf71b..d6fc52d03f 100644--- a/server/instance.go+++ b/server/instance.go@@ -162,6 +162,11 @@ func (s *Server) registerInstanceRoutes(g *echo.Group) {return err}+ if instancePatch.Host != nil || instancePatch.Port != nil || instancePatch.Username != nil || instancePatch.Password != nil {+ // Try immediately sync the schema after updating any connection related info.+ s.SyncSchema(instance)+ }+c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJSONCharsetUTF8)if err := jsonapi.MarshalPayload(c.Response().Writer, instance); err != nil {return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to marshal instance ID response: %v", id)).SetInternal(err)