You can use this from psql(terminal):
pg_dump -s databasename > file.dump
from pg_dump documentation the “-s” dump only the object definitions (schema), not data.
pg_dump documentation
You can use this from psql(terminal):
pg_dump -s databasename > file.dump
from pg_dump documentation the “-s” dump only the object definitions (schema), not data.
pg_dump documentation