Skip to content

Commit

Permalink
Remove unused field from MigratorOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jackc committed Oct 1, 2022
1 parent 54e00e2 commit 141fcc0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"io/fs"
"os"
"path/filepath"
"regexp"
"strconv"
Expand Down Expand Up @@ -72,8 +71,6 @@ type Migration struct {
type MigratorOptions struct {
// DisableTx causes the Migrator not to run migrations in a transaction.
DisableTx bool
// FileSystem is the interface used for collecting the migrations.
FileSystem fs.FS
}

type Migrator struct {
Expand All @@ -87,7 +84,7 @@ type Migrator struct {

// NewMigrator initializes a new Migrator. It is highly recommended that versionTable be schema qualified.
func NewMigrator(ctx context.Context, conn *pgx.Conn, versionTable string) (m *Migrator, err error) {
return NewMigratorEx(ctx, conn, versionTable, &MigratorOptions{FileSystem: os.DirFS("/")})
return NewMigratorEx(ctx, conn, versionTable, &MigratorOptions{})
}

// NewMigratorEx initializes a new Migrator. It is highly recommended that versionTable be schema qualified.
Expand Down

0 comments on commit 141fcc0

Please sign in to comment.