Created
April 29, 2018 18:09
-
-
Save arvindvyas/32505d32c7b5e3da5b71845c5ac70c62 to your computer and use it in GitHub Desktop.
Upgrade Heroku databse with database copy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are few things to remember | |
1) Before upgrading datbase for safer side create backup or current database. | |
2) Start manatance on so that in middle there should not save any other record which may loss due to databse upgradation | |
3) Look into the heroku plans according to your need you can find it here https://devcenter.heroku.com/articles/heroku-postgres-plans | |
I am sharing example to upgrade my database from Hobby-basic to Standard0 | |
heroku maintenance:on | |
heroku addons:create heroku-postgresql:standard-0 | |
heroku pg:copy DATABASE_URL HEROKU_POSTGRESQL_RED_URL --app sushi | |
heroku pg:promote HEROKU_POSTGRESQL_RED_URL | |
heroku maintenance:of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment