Commit graph

6 commits

Author SHA1 Message Date
Elias Projahn
71d51596ae Enable foreign key support 2020-03-21 15:41:03 +01:00
Elias Projahn
84cdd51c52 Replace existing rows in update functions 2020-03-21 15:08:50 +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
ef4b81ce9b Fix error opening database
The schemaVersion has to be at least one.
2019-12-04 20:48:03 +01:00
Elias Projahn
d73f2075fa Add function to generate an ID 2019-12-03 12:42:43 +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