mirror of https://github.com/rwf2/Rocket.git
Use diesel_cli <= 1.2.
This commit is contained in:
parent
e6a77c1573
commit
4e117cee96
|
@ -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"
|
||||
|
|
|
@ -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}\""
|
||||
|
|
Loading…
Reference in New Issue