mirror of
https://github.com/xataio/pgroll.git
synced 2024-09-11 05:45:48 +03:00
c029d5eff2
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 |
||
---|---|---|
.. | ||
errors.go | ||
state_test.go | ||
state.go |