Skip to content

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

Do know sync “bytebase” schema, since this is to track out own internal state.

天舟8fcaec995202
diff --git a/server/sql.go b/server/sql.go
index 8277a5d7ce..5482eb2e55 100644
--- a/server/sql.go
+++ b/server/sql.go
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"net/http"
+ "strings"
"time"
"github.com/bytebase/bytebase"
@@ -132,6 +133,10 @@ func (s *Server) SyncSchema(instance *api.Instance) (rs *api.SqlResultSet) {
}
for _, schema := range schemaList {
+ // Skip our internal "bytebase" database
+ if strings.EqualFold("bytebase", schema.Name) {
+ continue
+ }
var matchedDb *api.Database
for _, db := range dbList {
if db.Name == schema.Name {