Use diesel_cli <= 1.2.

This commit is contained in:
Sergio Benitez 2018-05-29 15:26:14 +02:00
parent e6a77c1573
commit 4e117cee96
2 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,7 @@ following commands:
```sh ```sh
# install Diesel CLI tools # 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 # create db/db.sql
diesel migration run --database-url="db/db.sql" diesel migration run --database-url="db/db.sql"

View File

@ -9,11 +9,9 @@ pushd "${SCRIPT_PATH}" > /dev/null
# install the diesel CLI tools if they're not installed # install the diesel CLI tools if they're not installed
if ! command -v diesel >/dev/null 2>&1; then 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 fi
# create db/db.sql # create db/db.sql
diesel migration --database-url="${DATABASE_URL}" run > /dev/null diesel migration --database-url="${DATABASE_URL}" run > /dev/null
popd > /dev/null popd > /dev/null
echo "export DATABASE_URL=\"${DATABASE_URL}\""