mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 03:47:23 +01:00
Add original database code
This commit is contained in:
parent
08be3cb613
commit
7eacfe21f4
26 changed files with 2059 additions and 24 deletions
18
README.md
18
README.md
|
|
@ -4,6 +4,24 @@ The classical music player and organizer.
|
|||
|
||||
## Hacking
|
||||
|
||||
### ORM
|
||||
|
||||
This program uses [Diesel](https://diesel.rs) as its ORM. After installing
|
||||
the Diesel command line utility, you will be able to create a new schema
|
||||
migration using the following command:
|
||||
|
||||
```
|
||||
$ diesel migration generate [change_description]
|
||||
```
|
||||
|
||||
To update the `src/db/schema.rs` file, you should use the following command:
|
||||
|
||||
```
|
||||
$ diesel migration run --database-url test.sqlite
|
||||
```
|
||||
|
||||
This file should never be edited manually.
|
||||
|
||||
### Internationalization
|
||||
|
||||
Execute the following commands from the project root directory to update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue