dokku / dokku/dokku-postgres

postgres:upgrade should not allow major version upgrade attempts

Open
#264 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
526
Forks
108
Avg merge
49m
Merged PRs (30d)
1

Description

I just hosed my database image and had to restore from a backup because I attempted to use dokku postgres:upgrade myapp (with no args) to jump from 12.5 to 14.5. Now, I realize I probably should've read the docs first, but still, if major version upgrades via postgres:upgrade aren't allowed, then it shouldn't attempt them, and should perhaps spit out a link to the docs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the postgres:upgrade command entry point and read the documentation describing supported PostgreSQL upgrades. Reproduce the no-argument upgrade attempt across major versions, then verify that it is rejected safely and directs the user to the relevant documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, shell
Domain
cli, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.