aboutsummaryrefslogtreecommitdiffstats
path: root/internal/models/migration_test.go
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-18 10:43:39 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-11-26 11:46:57 -0500
commite5658d1f61415054029b66cd2f703f1f40138460 (patch)
treec609e209f4cebc62dd985d1b773558f47eb73bf6 /internal/models/migration_test.go
parentAdd is-branch main check for docs deployment (diff)
downloadcli-e5658d1f61415054029b66cd2f703f1f40138460.zip
Add support for migration dependencies
Diffstat (limited to 'internal/models/migration_test.go')
-rw-r--r--internal/models/migration_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/models/migration_test.go b/internal/models/migration_test.go
index aae1cba..d7c1d6d 100644
--- a/internal/models/migration_test.go
+++ b/internal/models/migration_test.go
@@ -16,6 +16,7 @@ func TestNewTimestampMigration(t *testing.T) {
check.Equal(t, m.Version, "20200101000000")
check.Equal(t, m.Message, "test message")
check.Equal(t, m.Applied, false)
+ check.DeepEqual(t, m.Dependencies, []string{})
}
func TestNewSequentialMigration(t *testing.T) {
@@ -30,6 +31,7 @@ func TestNewSequentialMigration(t *testing.T) {
check.Equal(t, m.Version, "100")
check.Equal(t, m.Message, "test message")
check.Equal(t, m.Applied, false)
+ check.DeepEqual(t, m.Dependencies, []string{})
}
func TestName(t *testing.T) {