Skip to content

Commit 34bbb24

Browse files
Show the status for the correct schema (#204)
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.
1 parent 7f20c15 commit 34bbb24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var statusCmd = &cobra.Command{
3030
}
3131
defer state.Close()
3232

33-
statusLine, err := statusForSchema(ctx, state, flags.StateSchema())
33+
statusLine, err := statusForSchema(ctx, state, flags.Schema())
3434
if err != nil {
3535
return err
3636
}

0 commit comments

Comments
 (0)