From: Bill Erickson Date: Fri, 31 Aug 2018 15:21:23 +0000 (-0400) Subject: JBAS-2098 Dev DB builder schema-only option X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1e8bd0474ef156bff7c98bb0a359564ae9c52f8d;p=working%2FEvergreen.git JBAS-2098 Dev DB builder schema-only option Note the script must be manually modified for now, pending support for getopt. Signed-off-by: Bill Erickson --- diff --git a/KCLS/sql/sample-data/tools/create-dev-db.sh b/KCLS/sql/sample-data/tools/create-dev-db.sh index 68c4910305..e97641925c 100755 --- a/KCLS/sql/sample-data/tools/create-dev-db.sh +++ b/KCLS/sql/sample-data/tools/create-dev-db.sh @@ -7,6 +7,7 @@ # development data export # ------------------------------------------------------------------- set -euo pipefail +SCHEMA_ONLY='' if [ ! $(which sqitch) ]; then echo "Could not find 'sqitch'." @@ -28,8 +29,11 @@ echo "Deploying base schema" cd ../../schema sqitch --db-user evergreen deploy -# deploy sample data -echo "Deploying sample data" -cd ../sample-data -sqitch --db-user evergreen deploy --set exportdir="'$PWD/exports'" +if [ -z "$SCHEMA_ONLY" ]; then + + # deploy sample data + echo "Deploying sample data" + cd ../sample-data + sqitch --db-user evergreen deploy --set exportdir="'$PWD/exports'" +fi;