Skip to content

Commit

Permalink
fix(db commit): use migration name from args
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Nov 25, 2021
1 parent 178e1f9 commit ad98ca6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ var (
},
}

migrationName string
dbCommitCmd = &cobra.Command{
Use: "commit <migration name>",
Short: "Diffs the local database with current migrations, writing it as a new migration.",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
return commit.Run(migrationName)
return commit.Run(args[0])
},
}

Expand Down

0 comments on commit ad98ca6

Please sign in to comment.