Skip to content

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

fix: correct proto cmp (#13626)

h3n4l39752d1dd28f
diff --git a/backend/api/v1/branch_service.go b/backend/api/v1/branch_service.go
index f298ba7638..52f89df726 100644
--- a/backend/api/v1/branch_service.go
+++ b/backend/api/v1/branch_service.go
@@ -1608,7 +1608,7 @@ func updateDatabaseConfigLastModifierForMerge(baseMetadata *storepb.DatabaseSche
if baseTableConfig == nil {
baseTableConfig = initTableConfig(baseTable.GetProto(), "", "", now)
}
- if diff := cmp.Diff(baseTable.GetProto(), baseTable, protocmp.Transform()); diff != "" {
+ if diff := cmp.Diff(headTable, baseTable.GetProto(), protocmp.Transform()); diff != "" {
baseTableConfig.SourceBranch = headTableConfig.SourceBranch
baseTableConfig.Updater = headTableConfig.Updater
baseTableConfig.UpdateTime = now