Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: migration record prevSchema as updatedSchema (#571)
qsliuf2b90c22f62a
diff --git a/plugin/db/util/driverutil.go b/plugin/db/util/driverutil.goindex 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 MigrationExecif 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 = errreturn}