Skip to content

Commit

Permalink
fix example on postgres (#30)
Browse files Browse the repository at this point in the history
After #39 driver was renamed from postgresql to postgres, however the
example on the command's help was not updated
  • Loading branch information
pacop authored Nov 3, 2023
1 parent e76e259 commit 908b104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func NewScriptCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "script <file name>",
Short: "Generates new migration files",
Example: "morph new script create_users --driver postgresql --dir db/migrations --timestamp",
Example: "morph new script create_users --driver postgres --dir db/migrations --timestamp",
Args: cobra.ExactArgs(1),
Run: generateScriptCmdF,
}
Expand Down Expand Up @@ -89,7 +89,7 @@ func NewPlanCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "plan <file name>",
Short: "Generates new plan for the migration files with revert steps",
Example: "morph new plan plan --driver postgresql --dsn postgres://localhost:5432/morph --path db/migrations",
Example: "morph new plan plan --driver postgres --dsn postgres://localhost:5432/morph --path db/migrations",
Args: cobra.ExactArgs(1),
Run: generatePlanCmdF,
}
Expand Down

0 comments on commit 908b104

Please sign in to comment.