diff --git a/examples/todo/bootstrap.sh b/examples/todo/bootstrap.sh index 661d0851..daa92d50 100755 --- a/examples/todo/bootstrap.sh +++ b/examples/todo/bootstrap.sh @@ -4,6 +4,9 @@ SCRIPT_PATH=$(cd "$(dirname "$0")" ; pwd -P) DATABASE_URL=${SCRIPT_PATH}/db/db.sql pushd $SCRIPT_PATH > /dev/null + # clear an existing database + rm -f $DATABASE_URL + # install the diesel CLI tools if they're not installed if ! command -v diesel >/dev/null 2>&1; then cargo install diesel_cli --no-default-features --features=sqlite > /dev/null