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}\""