From c31b24c2afe1d5c46ba5e78ad572a0b205381aca Mon Sep 17 00:00:00 2001 From: David Robertson Date: Wed, 15 Feb 2023 12:30:41 +0000 Subject: [PATCH] Remind myself how to use schema dump script --- scripts-dev/make_full_schema.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts-dev/make_full_schema.sh b/scripts-dev/make_full_schema.sh index 575ca2428a97..e48bef5945ee 100755 --- a/scripts-dev/make_full_schema.sh +++ b/scripts-dev/make_full_schema.sh @@ -28,6 +28,11 @@ usage() { echo "-h" echo " Display this help text." echo "" + echo "" + echo "You probably want to invoke this with something like" + echo " docker run --rm -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=synapse -p 5432:5432 postgres:11-alpine" + echo " echo postgres | scripts-dev/make_full_schema.sh -p postgres -n MY_SCHEMA_NUMBER -o synapse/storage/schema" + echo "" echo " NB: make sure to run this against the *oldest* supported version of postgres," echo " or else pg_dump might output non-backwards-compatible syntax." }