From a40d4a6b81c719b74d7a08601208061914f9cbb3 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 2 Oct 2023 11:43:02 +0800 Subject: [PATCH] compile and update migration package --- pkg/migrations/mysql/migration_api_test.go | 4 ++-- pkg/migrations/sqlite3/migration_api_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/migrations/mysql/migration_api_test.go b/pkg/migrations/mysql/migration_api_test.go index 9864095ce..2684076d3 100644 --- a/pkg/migrations/mysql/migration_api_test.go +++ b/pkg/migrations/mysql/migration_api_test.go @@ -14,7 +14,7 @@ func TestGetMigrationsMap(t *testing.T) { func TestMergeMigrationsMap(t *testing.T) { MergeMigrationsMap(map[int64]*rockhopper.Migration{ - 2: {}, - 3: {}, + 2: &rockhopper.Migration{}, + 3: &rockhopper.Migration{}, }) } diff --git a/pkg/migrations/sqlite3/migration_api_test.go b/pkg/migrations/sqlite3/migration_api_test.go index d7f77c875..d1f4fe1ab 100644 --- a/pkg/migrations/sqlite3/migration_api_test.go +++ b/pkg/migrations/sqlite3/migration_api_test.go @@ -14,7 +14,7 @@ func TestGetMigrationsMap(t *testing.T) { func TestMergeMigrationsMap(t *testing.T) { MergeMigrationsMap(map[int64]*rockhopper.Migration{ - 2: {}, - 3: {}, + 2: &rockhopper.Migration{}, + 3: &rockhopper.Migration{}, }) }