mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-04 01:30:29 +00:00
Update README for sqlx related commands
This commit is contained in:
parent
1a29bc095c
commit
c8e2d84568
1 changed files with 9 additions and 2 deletions
11
README.md
11
README.md
|
@ -19,9 +19,16 @@ All PRs welcome.
|
|||
|
||||
### Regenerate compiler information
|
||||
|
||||
From within `./youmubot-db-sql` run
|
||||
The commands expect the cwd to be at the project base directory.
|
||||
|
||||
Manually run migrations with
|
||||
```
|
||||
sqlx migrate run --database-url "sqlite:./youmubot.db" --source ./youmubot-db-sql/migrations
|
||||
```
|
||||
|
||||
Update compiler information with
|
||||
```bash
|
||||
cargo sqlx prepare --database-url "sqlite:$(realpath ..)/youmubot.db"
|
||||
cargo sqlx prepare --database-url "sqlite:./youmubot.db" --workspace
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
Loading…
Add table
Reference in a new issue