Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support schema export, similar to "pg_dump --schema-only" #1316

Open
zmsy opened this issue Sep 5, 2019 · 0 comments
Open

Support schema export, similar to "pg_dump --schema-only" #1316

zmsy opened this issue Sep 5, 2019 · 0 comments

Comments

@zmsy
Copy link

zmsy commented Sep 5, 2019

Do you want to request a feature or report a bug?

Feature.

What is the current behavior?

N/A

What is the expected behavior?

Expected behavior is that the schema of a heroku instance can be exported similar to the way that "pg_dump --schema-only" works right now. Since the database in use is in a private space, it's not possible to connect directly to a private-tier database without having additional IP ranges exposed (You'd need to connect directly to the database to use the pg_dump cli tool).

Ideally:

heroku pg:schema:export -o schema.sql -a my-app

Workaround right now is to stand up a local postgres and run heroku pg:pull and exclude table data for all tables, but that requires you to maintain the list of tables/etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant