Commit graph

5 commits

Author SHA1 Message Date
Elias Projahn
7f783bd016 Database: Fix worksByComposer
While the previous code was indeed valid SQL is wasn't the best way to
do this. Also, only works with parts where included in the result set.
This is fixed now. Some optimization may still be neccessary.
2020-03-22 16:31:38 +01:00
Elias Projahn
6cc110c76c Database: Add query to get composers of work 2020-03-22 15:59:23 +01:00
Elias Projahn
4092a91f56 Add recordings
The tables ensembles, roles, recordings and performances as well as
corresponding queries and update logic have been added to the database.
2020-03-22 14:49:40 +01:00
Elias Projahn
4b178752b9 Redo how works are stored
Before works where stored using a complicated tree structure where each
part references its parent. Now it's a flat structure that keeps track
of the relations using a new field named part_level. The corresponding
query was simplified accordingly. Also, the updateWork function was
rewritten.
2020-03-21 14:34:45 +01:00
Elias Projahn
437e30933a Add basic database for works and composers
This includes tables for persons, instruments and works as well as some
queries and functions to work with them. The generated code should be
ignored by Git for now. I also added a section to README.md explaining
how to handle code generation.
2019-12-03 12:03:39 +01:00