From 59d4f3d3b664c648d805f42f3b92a177959ba097 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Tue, 29 May 2018 15:26:14 +0200 Subject: [PATCH] Use diesel_cli <= 1.2. --- examples/todo/README.md | 2 +- examples/todo/bootstrap.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/todo/README.md b/examples/todo/README.md index bb0c9263..a4e26a0b 100644 --- a/examples/todo/README.md +++ b/examples/todo/README.md @@ -21,7 +21,7 @@ following commands: ```sh # install Diesel CLI tools -cargo install diesel_cli --no-default-features --features sqlite +cargo install diesel_cli --version '<= 1.2' --no-default-features --features=sqlite # create db/db.sql diesel migration run --database-url="db/db.sql" diff --git a/examples/todo/bootstrap.sh b/examples/todo/bootstrap.sh index f2307073..7e3e7292 100755 --- a/examples/todo/bootstrap.sh +++ b/examples/todo/bootstrap.sh @@ -9,11 +9,9 @@ pushd "${SCRIPT_PATH}" > /dev/null # 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 + cargo install diesel_cli --version '<= 1.2' --no-default-features --features=sqlite > /dev/null fi # create db/db.sql diesel migration --database-url="${DATABASE_URL}" run > /dev/null popd > /dev/null - -echo "export DATABASE_URL=\"${DATABASE_URL}\""