diff options
Diffstat (limited to 'internal/commands/up.go')
| -rw-r--r-- | internal/commands/up.go | 4 |
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 { |