aboutsummaryrefslogtreecommitdiffstats
path: root/internal/commands/down.go
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-08-18 14:51:00 -0400
committerGitHub <noreply@github.com>2024-08-18 14:51:00 -0400
commitd2186ed58d907a81648aa62ffa17ec20fb2d213e (patch)
treea5b2e26f1f96f333d48a8b20126ecc9ead697029 /internal/commands/down.go
parentMultiple issue fixes in readme (#3) (diff)
downloadcli-d2186ed58d907a81648aa62ffa17ec20fb2d213e.zip
GH-4: Add configurable migrations table name (#6)
* Add configurable migrations table name * Update codecov to be informational * Add mockdb and couple of extra tests * remove extra files * Add list query error test * Add readme update for custom migration table
Diffstat (limited to 'internal/commands/down.go')
-rw-r--r--internal/commands/down.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/commands/down.go b/internal/commands/down.go
index f991c69..b537b17 100644
--- a/internal/commands/down.go
+++ b/internal/commands/down.go
@@ -61,7 +61,7 @@ func (cmd *DownCmd) Execute(
}
defer db.Close()
- migrationDBRepo, err := repositories.NewMigrationDBRepo(db)
+ migrationDBRepo, err := repositories.NewMigrationDBRepo(cfg.Connection.MigrationsTable, db)
if err != nil {
consoleOutputter.Error(err)
return subcommands.ExitFailure