Skip to content

Commit

Permalink
Fix db restore script.
Browse files Browse the repository at this point in the history
  • Loading branch information
casey-rapnicki-bixal committed Mar 6, 2024
1 parent 677eaa4 commit 0dfab51
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 0dfab51

Please sign in to comment.