Skip to content

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

fix: drift git commit (#16151)

Danny Xucc733a3e4e3d
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index cf7865ac13..a8475461b9 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -482,7 +482,8 @@ func (s *DatabaseService) UpdateDatabase(ctx context.Context, request *v1pb.Upda
PrevSyncHistoryUID: &syncHistory,
SyncHistoryUID: &syncHistory,
Payload: &storepb.ChangelogPayload{
- Type: storepb.ChangelogPayload_BASELINE,
+ Type: storepb.ChangelogPayload_BASELINE,
+ GitCommit: s.profile.GitCommit,
}}); err != nil {
return nil, errors.Wrapf(err, "failed to create changelog")
}
diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.go
index a32fd908ce..520c77fd3e 100644
--- a/backend/runner/taskrun/executor.go
+++ b/backend/runner/taskrun/executor.go
@@ -464,6 +464,7 @@ func beginMigration(ctx context.Context, stores *store.Store, mc *migrateContext
Sheet: mc.sheetName,
Version: mc.version,
Type: convertTaskType(mc.task.Type),
+ GitCommit: mc.profile.GitCommit,
}})
if err != nil {
return false, errors.Wrapf(err, "failed to create changelog")