无法将 heroku postgres 从爱好层升级到标准层

Can't upgrade heroku postgres from hobby tier to standard

我按照本指南升级了 postgres 计划:

https://devcenter.heroku.com/articles/updating-heroku-postgres-databases#updating-with-addons-upgrade

我想使用 heroku addons:upgrade 升级。

这是输出:

Changing postgresql-rernd-166744 on myapp-api from heroku-postgresql:hobby-dev to heroku-postgresql:standard-0... !
 !    An error was encountered when contacting the add-on partner to change to heroku-postgresql:standard-0:
 !    heroku-postgresql does not currently support changing plans.

我已经添加了一张银行卡,并且已经在另一个应用程序中使用了另一个 heroku 计划,所以我怀疑这就是原因。

关于 Hobby 计划的任何升级,您必须使用 pg:copyheroku addons:upgrade 仅适用于生产层(新旧数据库必须在这些计划中)

The pg:copy command supports updates between all supported Heroku Postgres plans and versions. Additionally, it is the only supported method for updates involving a Hobby-tier database (whether you are migrating to one or from one).

这就是您升级数据库计划时要遵循的指南

https://devcenter.heroku.com/articles/upgrading-heroku-postgres-databases#upgrading-with-pg-copy