aboutsummaryrefslogtreecommitdiffstats
path: root/internal/commands/down.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/commands/down.go')
-rw-r--r--internal/commands/down.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/commands/down.go b/internal/commands/down.go
index 0ba3abb..f991c69 100644
--- a/internal/commands/down.go
+++ b/internal/commands/down.go
@@ -54,12 +54,12 @@ func (cmd *DownCmd) Execute(
return subcommands.ExitFailure
}
- db, err := storage.DBConnect(cfg.Connection)
+ db, err := storage.NewDB(cfg.Connection)
if err != nil {
consoleOutputter.Error(fmt.Errorf("unable to connect to database: %w", err))
return subcommands.ExitFailure
}
- defer db.Session.Close()
+ defer db.Close()
migrationDBRepo, err := repositories.NewMigrationDBRepo(db)
if err != nil {