Skip to content

Commit

Permalink
Show the status for the correct schema (#204)
Browse files Browse the repository at this point in the history
Fix the `pgroll status` command so that it shows the status for the
correct schema (ie the one set by the `--schema` flag, or `"public"` by
default).

Prior to this the command would show the status for the
`--pgroll-schema` (`"pgroll"` by default).

This appears to have been broken since #152.
  • Loading branch information
andrew-farries authored Nov 22, 2023
1 parent 7f20c15 commit 34bbb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var statusCmd = &cobra.Command{
}
defer state.Close()

statusLine, err := statusForSchema(ctx, state, flags.StateSchema())
statusLine, err := statusForSchema(ctx, state, flags.Schema())
if err != nil {
return err
}
Expand Down

0 comments on commit 34bbb24

Please sign in to comment.