Skip to content
Merged
Changes from 2 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
5 changes: 5 additions & 0 deletions infrastructure/clear-all-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ docker run --rm --network=$NETWORK \
-e EVENTS_MIGRATOR_ROLE="${EVENTS_MIGRATOR_ROLE}" \
-e EVENTS_APP_ROLE="${EVENTS_APP_ROLE}" \
-e ANALYTICS_POSTGRES_USER="${ANALYTICS_POSTGRES_USER}" \
-e ANALYTICS_POSTGRES_DB="${ANALYTICS_POSTGRES_DB}" \
postgres:17.6 bash -c '

echo "POSTGRES_DB=$POSTGRES_DB"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is echo neeed?

echo "ANALYTICS_POSTGRES_DB=$ANALYTICS_POSTGRES_DB"

psql -h postgres -U "$POSTGRES_USER" -d postgres -v ON_ERROR_STOP=1 <<EOF
DROP DATABASE IF EXISTS "$POSTGRES_DB" WITH (FORCE);
DROP DATABASE IF EXISTS "$ANALYTICS_POSTGRES_DB" WITH (FORCE);
Expand Down
Loading