Skip to content

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

fix: migration record prevSchema as updatedSchema (#571)

qsliuf2b90c22f62a
diff --git a/plugin/db/util/driverutil.go b/plugin/db/util/driverutil.go
index 80e008f318..ea42c88375 100644
--- a/plugin/db/util/driverutil.go
+++ b/plugin/db/util/driverutil.go
@@ -232,7 +232,7 @@ func ExecuteMigration(ctx context.Context, l *zap.Logger, executor MigrationExec
if resErr == nil {
// Upon success, update the migration history as 'DONE', execution_duration_ns, updated schema.
- if err := executor.UpdateHistoryAsDone(ctx, afterTx, migrationDurationNs, prevSchemaBuf.String(), insertedID); err != nil {
+ if err := executor.UpdateHistoryAsDone(ctx, afterTx, migrationDurationNs, updatedSchema, insertedID); err != nil {
myErr = err
return
}