xataio / pgroll

PostgreSQL zero-downtime migrations made easy
https://www.xata.io
Apache License 2.0
2.97k stars 54 forks source link

Ignore duplicate inferred migrations having the same timestamp #369

Closed andrew-farries closed 1 month ago

andrew-farries commented 2 months ago

Remove all but the last inferred migration in a group of inferred migrations that occur at the same timestamp with the same migration SQL.

Such inferred migrations are typically part of a batched transaction for which we want to ignore all but the effect of the last statement in the batch.