Database Reference
In-Depth Information
Unfollow the main database
You can stop following the main database at anytime. This action does not remove the fol-
lower database; it just stops the synchronization. In this case, after unfollowing the main
database, you can read and write data in the follower database.
The command expects to be informed of the follower database URL. Here is an example:
$ heroku pg:unfollow HEROKU_POSTGRESQL_[COLOR]_URL --app
your-app-name
! HEROKU_POSTGRESQL_[COLOR]_URL will become writable and
no longer
! follow HEROKU_POSTGRESQL_[COLOR]. This cannot be undone.
! WARNING: Destructive Action
! This command will affect the app: your-app-name
! To proceed, type "your-app-name" or re-run this command
with --confirm your-app-name
> your-app-name
Unfollowing HEROKU_POSTGRESQL_[COLOR]_URL... done
Tip
An important detail when you perform the unfollow action is that you still continue to be
charged by the follower database. This is because the database has not been removed; it
still remains active to read and write data.
If you want to delete the database, it is necessary to use the add-on remove command. Here
is an example:
$ heroku addons:remove HEROKU_POSTGRESQL_[COLOR]_URL --app
your-app-name
! WARNING: Destructive Action
! This command will affect the app: your-app-name
! To proceed, type "your-app-name" or re-run this command
with --confirm your-app-name
Search WWH ::




Custom Search