I tried to push my database to heroku by doing heroku db:push
which gave me the following error:
! db:push and db:pull have been removed and replaced with pg:push and pg:pull.
! For more information, please see:
! devcenter.heroku.com/articles/heroku-postgresql#pg-push-and-pg-pull
So I tried heroku pg:push
which gave me this error:
! `pg:push` is not a heroku command.
! Perhaps you meant `db:push` or `pg:ps`.
And heroku help pg
gives
pg:credentials DATABASE # Display the DATABASE credentials.
pg:info [DATABASE] # Display database information
pg:promote DATABASE # Sets DATABASE as your DATABASE_URL
pg:psql [DATABASE] # Open a psql shell to the database
pg:reset DATABASE # Delete all data in DATABASE
pg:unfollow REPLICA # stop a replica from following and make it a read/write database
pg:wait [DATABASE] # monitor database creation, exit when complete
My app is on the cedar stack and here's the full command I'm using:
heroku pg:push my_local_name HEROKU_POSTGRESQL_CHARCOAL --app my_app_name
Also tried the suggestion of adding on pgbackups
but I still get the same error.