pgroll/pkg/state
Andrew Farries c029d5eff2
Fix previous version detection in the presence of inferred DDL migrations (#197)
Update the definition of the `previous_version` function to use a
recursive CTE to find the first non-'inferred' parent of the current
version.

This requires adding a new column to the `pgroll.migrations` table to
record whether a migration is a pgroll migration or an inferred DDL
change made outside of pgroll.

Together, this means that the previous version schema is removed
correctly when there have been inferred DDL changes between the current
and previous pgroll migration.

Fixes #196
2023-11-03 07:08:01 +00:00
..
errors.go License check in github actions (#123) 2023-09-22 10:31:49 +00:00
state_test.go Set project name to pgroll (#124) 2023-09-22 12:50:31 +02:00
state.go Fix previous version detection in the presence of inferred DDL migrations (#197) 2023-11-03 07:08:01 +00:00