Skip to content

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

feat: enable OceanBase SDL (#6613)

rebelice15ef2b10217a
diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.go
index 21587d56bd..9158cca062 100644
--- a/backend/runner/taskrun/executor.go
+++ b/backend/runner/taskrun/executor.go
@@ -399,7 +399,7 @@ func postMigration(ctx context.Context, stores *store.Store, activityManager *ac
if writebackBranch != "" {
// Transform the schema to standard style for SDL mode.
- if instance.Engine == db.MySQL || instance.Engine == db.MariaDB {
+ if instance.Engine == db.MySQL || instance.Engine == db.MariaDB || instance.Engine == db.OceanBase {
standardSchema, err := transform.SchemaTransform(parser.MySQL, schema)
if err != nil {
return true, nil, errors.Wrapf(err, "failed to transform to standard schema for database %q", database.DatabaseName)
diff --git a/backend/server/openapi_sql.go b/backend/server/openapi_sql.go
index 548809d0e6..5db65e7874 100644
--- a/backend/server/openapi_sql.go
+++ b/backend/server/openapi_sql.go
@@ -219,7 +219,7 @@ func schemaDiff(c echo.Context) error {
switch request.EngineType {
case parser.EngineType(db.Postgres):
engine = parser.Postgres
- case parser.EngineType(db.MySQL), parser.EngineType(db.MariaDB):
+ case parser.EngineType(db.MySQL), parser.EngineType(db.MariaDB), parser.EngineType(db.OceanBase):
engine = parser.MySQL
default:
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid database engine %s", request.EngineType))