Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sql-migrate/command_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func ApplyMigrations(dir migrate.MigrationDirection, dryrun bool, limit int) err
if err != nil {
return err
}
defer db.Close()

source := migrate.FileMigrationSource{
Dir: env.Dir,
Expand Down
1 change: 1 addition & 0 deletions sql-migrate/command_redo.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (c *RedoCommand) Run(args []string) int {
ui.Error(err.Error())
return 1
}
defer db.Close()

source := migrate.FileMigrationSource{
Dir: env.Dir,
Expand Down
1 change: 1 addition & 0 deletions sql-migrate/command_skip.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func SkipMigrations(dir migrate.MigrationDirection, dryrun bool, limit int) erro
if err != nil {
return err
}
defer db.Close()

source := migrate.FileMigrationSource{
Dir: env.Dir,
Expand Down
1 change: 1 addition & 0 deletions sql-migrate/command_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func (c *StatusCommand) Run(args []string) int {
ui.Error(err.Error())
return 1
}
defer db.Close()

source := migrate.FileMigrationSource{
Dir: env.Dir,
Expand Down