Put app in maintenance:
heroku maintenance:on -a some-appCreate backup
heroku pgbackups:capture --expire -a some-appAdd new db addon, and check color in heroku config, and restore from backup:
heroku pgbackups:restore HEROKU_POSTGRESQL_COLOUR -a some-appAfter everything’s been done, promote it to be the main DB:
heroku pg:promote HEROKU_POSTGRESQL_COLOUR -a some-appRemove maintenance, and restart app:
heroku maintenance:off -a some-app
heroku restart -a some-app