chore: update migrator

This commit is contained in:
Steven
2024-08-26 22:50:46 +08:00
parent ccd3fdcd38
commit fbdfaf85d9
2 changed files with 71 additions and 6 deletions

View File

@ -53,6 +53,11 @@ func TestIsVersionGreaterThan(t *testing.T) {
target: "0.8.0",
want: true,
},
{
version: "0.23",
target: "0.22",
want: true,
},
{
version: "0.8.0",
target: "0.10.0",
@ -63,6 +68,11 @@ func TestIsVersionGreaterThan(t *testing.T) {
target: "0.9.1",
want: false,
},
{
version: "0.22",
target: "0.22",
want: false,
},
}
for _, test := range tests {
result := IsVersionGreaterThan(test.version, test.target)