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

update docs for pg_dump #1098

Merged
merged 2 commits into from
Nov 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/graphql/manual/migrations/existing-project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ Step 3: Initialize the migrations as per your current state

pg_dump -O -x -h <db-host> -p <db-port> -U <db-user> -d <db-name> --schema public --schema-only > public-schema.sql

.. note::

If the exported file contains ``SELECT pg_catalog.set_config('search_path', '', false);``, remove the whole line.
This can cause issues later when SQL is run without schema qualifiers, since this statement sets search path to ``''``
instead of the default ``public`` and ``pg_catalog``.

- Export the metadata (this creates a file ``metadata.yaml``):

.. code-block:: bash
Expand Down