Add original database code

This commit is contained in:
Elias Projahn 2023-09-30 18:26:11 +02:00
parent 08be3cb613
commit 7eacfe21f4
26 changed files with 2059 additions and 24 deletions

View file

@ -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