diff options
Diffstat (limited to 'internal/commands')
| -rw-r--r-- | internal/commands/down.go | 2 | ||||
| -rw-r--r-- | internal/commands/new.go | 2 | ||||
| -rw-r--r-- | internal/commands/status.go | 2 | ||||
| -rw-r--r-- | internal/commands/up.go | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/internal/commands/down.go b/internal/commands/down.go index d9965b5..262e229 100644 --- a/internal/commands/down.go +++ b/internal/commands/down.go @@ -69,7 +69,7 @@ func (cmd *DownCmd) Execute( return subcommands.ExitFailure } - migrationFsRepo, err := repositories.NewMigrationFsRepo(cfg.MigrationsDir) + migrationFsRepo, err := repositories.NewMigrationFsRepo(&cfg.Migrations) if err != nil { consoleOutputter.Error(err.Error()) return subcommands.ExitFailure diff --git a/internal/commands/new.go b/internal/commands/new.go index 864de4e..a4eeff4 100644 --- a/internal/commands/new.go +++ b/internal/commands/new.go @@ -54,7 +54,7 @@ func (cmd *NewCmd) Execute( return subcommands.ExitFailure } - migrationFsRepo, err := repositories.NewMigrationFsRepo(cfg.MigrationsDir) + migrationFsRepo, err := repositories.NewMigrationFsRepo(&cfg.Migrations) if err != nil { consoleOutputter.Error(err.Error()) return subcommands.ExitFailure diff --git a/internal/commands/status.go b/internal/commands/status.go index 2adafef..417e95b 100644 --- a/internal/commands/status.go +++ b/internal/commands/status.go @@ -59,7 +59,7 @@ func (m *StatusCmd) Execute( return subcommands.ExitFailure } - migrationFsRepo, err := repositories.NewMigrationFsRepo(cfg.MigrationsDir) + migrationFsRepo, err := repositories.NewMigrationFsRepo(&cfg.Migrations) if err != nil { consoleOutputter.Error(err.Error()) return subcommands.ExitFailure diff --git a/internal/commands/up.go b/internal/commands/up.go index 57f9109..ba74299 100644 --- a/internal/commands/up.go +++ b/internal/commands/up.go @@ -69,7 +69,7 @@ func (cmd *UpCmd) Execute( return subcommands.ExitFailure } - migrationFsRepo, err := repositories.NewMigrationFsRepo(cfg.MigrationsDir) + migrationFsRepo, err := repositories.NewMigrationFsRepo(&cfg.Migrations) if err != nil { consoleOutputter.Error(err.Error()) return subcommands.ExitFailure |