From b5a2102cb1c18b681ef4c05844286efc74e6e217 Mon Sep 17 00:00:00 2001 From: oliverpool Date: Tue, 10 Oct 2023 16:03:52 +0200 Subject: [PATCH] polish --- internal/provider/provider.go | 2 +- storage/common.go | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 9124fe063..2a2eeddfe 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -13,7 +13,7 @@ import ( // NewProvider returns a new goose Provider. // -// storageFactory are available in the [storage] package (e.g. storage.Sqlite3). +// storageFactory implementations are available in the [storage] package (e.g. storage.Sqlite3). // // fsys is the filesystem used to read the migration files. Most users will want to use // os.DirFS("path/to/migrations") to read migrations from the local filesystem. However, it is diff --git a/storage/common.go b/storage/common.go index da9635dd7..0c44bbd6d 100644 --- a/storage/common.go +++ b/storage/common.go @@ -38,12 +38,6 @@ func (q queries) DeleteVersion(ctx context.Context, db state.DB, version int64) return err } -// DeleteVersionNoTx implements Store. -func (q queries) DeleteVersionNoTx(ctx context.Context, db state.DB, version int64) error { - _, err := db.ExecContext(ctx, q.deleteVersion, version) - return err -} - // GetMigration implements Store. func (q queries) GetMigration(ctx context.Context, db state.DB, version int64) (*state.GetMigrationResult, error) { var timestamp time.Time