Skip to content

Commit

Permalink
add create_ipr_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 committed Jan 3, 2024
1 parent 645933d commit 64d4663
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nd/create_ipr_schema.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

export PGPASSWORD=password #$IPR_POSTGRES_PASSWORD
export POSTGRES_USER=ipr_service #$IPR_POSTGRES_USER
export DB_NAME=ipr

echo "***CREATING PSQL SCHEMA WITH MIGRATION DATA ***"

echo $POSTGRES_USER
echo $DB_NAME


if [ "$SCHEMA_DUMP_LOCATION" = "" ];
then
SCHEMA_DUMP_LOCATION=".database/ipr_schema.postgres.dump"
fi

echo $SCHEMA_DUMP_LOCATION

pg_restore -U $POSTGRES_USER -d $DB_NAME -f $SCHEMA_DUMP_LOCATION

0 comments on commit 64d4663

Please sign in to comment.