postgres:upgrade should not allow major version upgrade attempts
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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