mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-11-26 01:18:31 +00:00
Updated dependencies and created 'rust-toolchain', to mark a working nightly to rustup users, and hopefully avoid some nightly breakage.
This commit is contained in:
parent
483066b9a0
commit
f72efa899e
6 changed files with 166 additions and 143 deletions
|
|
@ -78,7 +78,7 @@ Finally copy the contents of the `web-vault/dist` folder into the `bitwarden_rs/
|
|||
## How to recreate database schemas
|
||||
Install diesel-cli with cargo:
|
||||
```sh
|
||||
cargo install diesel_cli --no-default-features --features sqlite-bundled # Or use only sqlite to use the system version
|
||||
cargo install diesel_cli --no-default-features --features sqlite-bundled
|
||||
```
|
||||
|
||||
Make sure that the correct path to the database is in the `.env` file.
|
||||
|
|
@ -91,7 +91,9 @@ diesel migration generate <name>
|
|||
Modify the *.sql files, making sure that any changes are reverted in the down.sql file.
|
||||
|
||||
Apply the migrations and save the generated schemas as follows:
|
||||
```
|
||||
```sh
|
||||
diesel migration redo
|
||||
diesel print-schema > src/db/schema.rs
|
||||
|
||||
# This step should be done automatically when using diesel-cli > 1.3.0
|
||||
# diesel print-schema > src/db/schema.rs
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue