I’m getting close to reaching the 10K limit on my Heroku Hobby Dev Postgres database. I’m attempting to upgrade to Hobby Basic which has a 10M row limit.
I created the new database and copied the data over without errors. I put my app in maintenance mode. However, when I tried to use pg:promote, I got the following error:
The DATABASE_URL in Heroku is pointed to the new database, but the connections are still to the old database. I tried to to redeploy to see if it would pull in the new DATABASE_URL Config Var, but the release failed with this error:
I too converted to a paid database. As part of this process Heroku gives you a config variable for the new paid database.
Free vs Paid Config variable
In my app I had referenced “DATABASE_URL”, so I had to go through my app and change all references from “DATABASE_URL” to “HEROKU_POSTGRESQL_GREEN_URL” which is the new config variable for the paid database.
Locating config var names
Select your app then select “settings” and it’s in a section called “config vars”
The files I needed to modify in my phoenix application to were config/prod.exs and lib/yourappname/repo.ex.
The feedback in this forum is correct just leaving more details for any newbies to Heroku deployment.