Skip to content

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

Try sync the schema after instance creation

天舟42fa67cf89f8
diff --git a/server/instance.go b/server/instance.go
index 17b398a57b..06ae863f0c 100644
--- a/server/instance.go
+++ b/server/instance.go
@@ -34,6 +34,9 @@ func (s *Server) registerInstanceRoutes(g *echo.Group) {
return err
}
+ // Try immediately sync the schema after instance creation.
+ 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, "Failed to marshal create instance response").SetInternal(err)