Skip to content

Commit

Permalink
Merge pull request #1003 from GSA/863-add-script-for-updating-db
Browse files Browse the repository at this point in the history
863 Add script for updating db
  • Loading branch information
casey-rapnicki-bixal authored Mar 6, 2024
2 parents 8541508 + 0dfab51 commit 58ef3a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pipeline/database-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ echo "Restoring database to '${ENVIRONMENT}'..."
} >/dev/null 2>&1

## Drop (delete) current database.
mysql
mysql \
--defaults-extra-file=~/.mysql/mysql.cnf \
--host=${host} \
--port=${port} \
--protocol=TCP \
--execute="DROP DATABASE IF EXISTS ${dbname};"

## Create a new empty database.
mysql
mysql \
--defaults-extra-file=~/.mysql/mysql.cnf \
--host=${host} \
--port=${port} \
Expand Down

0 comments on commit 58ef3a4

Please sign in to comment.