Skip to content

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

Schema update task executor should determine the migrationType from payload instead of assuming MIGRATE

天舟6f766876064a
diff --git a/server/task_executor_schema_update.go b/server/task_executor_schema_update.go
index 5c3064ae03..94fe808422 100644
--- a/server/task_executor_schema_update.go
+++ b/server/task_executor_schema_update.go
@@ -52,7 +52,7 @@ func (exec *SchemaUpdateTaskExecutor) RunOnce(ctx context.Context, server *Serve
var repository *api.Repository
mi := &db.MigrationInfo{
- Type: db.Migrate,
+ Type: payload.MigrationType,
}
if payload.VCSPushEvent == nil {
mi.Engine = db.UI