aboutsummaryrefslogtreecommitdiffstats
path: root/internal/commands/up.go
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-03-10 15:54:35 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2024-03-10 15:54:35 -0400
commit57689dfd7dfe2e3c6efea53b67ad57820683b3b9 (patch)
tree3e008fc4c0a0baa5d1c44ced357110be223de82a /internal/commands/up.go
parentUpdate readme (diff)
downloadcli-57689dfd7dfe2e3c6efea53b67ad57820683b3b9.zip
Add adapters and remove upperdb
Diffstat (limited to 'internal/commands/up.go')
-rw-r--r--internal/commands/up.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/commands/up.go b/internal/commands/up.go
index a203d2e..77e0b8d 100644
--- a/internal/commands/up.go
+++ b/internal/commands/up.go
@@ -54,12 +54,12 @@ func (cmd *UpCmd) 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 {