Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate postgresql-upgrade-database #15799

Merged
merged 1 commit into from
Aug 1, 2023
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
5 changes: 5 additions & 0 deletions Library/Homebrew/cmd/postgresql-upgrade-database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@
EOS

named_args :none

hide_from_man_page!
end
end

sig { void }
def postgresql_upgrade_database
postgresql_upgrade_database_args.parse

odeprecated "brew postgresql_upgrade_database",

Check warning on line 27 in Library/Homebrew/cmd/postgresql-upgrade-database.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cmd/postgresql-upgrade-database.rb#L27

Added line #L27 was not covered by tests
"using new, versioned e.g. `var/postgres@14` datadir and `pg_upgrade`"

name = "postgresql"
pg = Formula[name]
bin = pg.bin
Expand Down
4 changes: 0 additions & 4 deletions docs/Manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,6 @@ information is displayed in interactive shells, and suppressed otherwise.
Pin the specified *`formula`*, preventing them from being upgraded when
issuing the `brew upgrade` *`formula`* command. See also `unpin`.

### `postgresql-upgrade-database`

Upgrades the database for the `postgresql` formula.

### `postinstall`, `post_install` *`installed_formula`* [...]

Rerun the post-install steps for *`formula`*.
Expand Down
3 changes: 0 additions & 3 deletions manpages/brew.1
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,6 @@ Also include outdated casks including those with \fBauto_updates true\fR\.
.SS "\fBpin\fR \fIinstalled_formula\fR [\.\.\.]"
Pin the specified \fIformula\fR, preventing them from being upgraded when issuing the \fBbrew upgrade\fR \fIformula\fR command\. See also \fBunpin\fR\.
.
.SS "\fBpostgresql\-upgrade\-database\fR"
Upgrades the database for the \fBpostgresql\fR formula\.
.
.SS "\fBpostinstall\fR, \fBpost_install\fR \fIinstalled_formula\fR [\.\.\.]"
Rerun the post\-install steps for \fIformula\fR\.
.
Expand Down
Loading