From e5658d1f61415054029b66cd2f703f1f40138460 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 18 Oct 2025 10:43:39 -0400 Subject: Add support for migration dependencies --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index df79c15..303ca26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- **Migration dependencies**: Migrations can now declare dependencies on other + migrations using `-- depends: version1, version2` at the top of the migration file. + These dependencies determine execution order. New migrations automatically depend + on current leaf migrations. + +Migration to dependencies: If you don't have _any_ '-- depends:' directives, +all migrations will be treated as 'leaf' node migrations and simply execute in +version order as before. To start using dependencies, you should backport them +to all existing dependencies before doing so. + ### Changed - Updated Go to version 1.24.0. @@ -16,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `github.com/mattn/go-sqlite3` from v1.14.22 to v1.14.32 - `github.com/microsoft/go-mssqldb` from v1.7.0 to v1.9.3 - Updated `github.com/BurntSushi/toml` from v1.3.2 to v1.5.0. +- Migration execution order is now determined by dependencies rather than version number. ### Removed -- cgit v1.2.3