changes Werkverzeichnisnummer to wd_number

This commit is contained in:
2023-10-18 06:41:51 +02:00
parent a0d4b8c5fe
commit 7a71ca6854
3 changed files with 8 additions and 8 deletions

View File

@@ -87,7 +87,7 @@ class Werk_unter_id:
WHERE id = {werk_id}
"""
werk_list_val = self.reader.execute(sql_wui).fetchone()
werk_list_att = ('id', 'comp_id', 'year', 'opus', 'collection', 'main_key', 'title', 'mov_title', 'alias', 'work_directory', 'Werkverzeichnisnummer')
werk_list_att = ('id', 'comp_id', 'year', 'opus', 'collection', 'main_key', 'title', 'mov_title', 'alias', 'work_directory', 'wd_number')
for tup in zip(werk_list_att, werk_list_val):
self.values[tup[0]] = tup[1]

View File

@@ -17,7 +17,7 @@ CREATE TABLE work (
mov_title VARCHAR(127),
alias VARCHAR(127),
work_directory VARCHAR(31),
Werkverzeichnisnummer VARCHAR(15),
wd_number VARCHAR(15),
FOREIGN KEY(comp_id) REFERENCES composer(id)
);

View File

@@ -1,4 +1,4 @@
INSERT INTO work (id,comp_id,year,collection,main_key,title,work_directory,Werkverzeichnisnummer)
INSERT INTO work (id,comp_id,year,collection,main_key,title,work_directory,wd_number)
VALUES
(1,1,1722,'Das wohltemperierte Klavier Teil 1','C-Dur','Präludium und Fuge','BWV','846'),
(2,1,1722,'Das wohltemperierte Klavier Teil 1','c-Moll','Präludium und Fuge','BWV','847'),
@@ -50,7 +50,7 @@ VALUES
(48,1,1742,'Das wohltemperierte Klavier Teil 2','h-Moll','Präludium und Fuge','BWV','893')
;
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, alias, work_directory, Werkverzeichnisnummer) VALUES
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, alias, work_directory, wd_number) VALUES
(49, 2, 1795, '2', 'Sonaten', 'f-Moll', 'Sonate', NULL, NULL, NULL),
(50, 2, 1795, '2', 'Sonaten', 'A-Dur', 'Sonate', NULL, NULL, NULL),
(51, 2, 1795, '2', 'Sonaten', 'C-Dur', 'Sonate', NULL, NULL, NULL),
@@ -85,15 +85,15 @@ INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, alias, w
(80, 2, 1822, '111', 'Sonaten', 'c-Moll', 'Sonate', NULL, NULL, NULL)
;
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, work_directory, Werkverzeichnisnummer) VALUES
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, work_directory, wd_number) VALUES
(81, 5, 1832, '2', NULL, NULL, 'Papillons', NULL, NULL);
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, mov_title, work_directory, Werkverzeichnisnummer) VALUES
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, mov_title, work_directory, wd_number) VALUES
(82, 4, 1827, '90', 'Impromptus', NULL, 'Vier Impromptus', 'Impromptu', 'D', '899'),
(83, 4, 1827, 'post. 142', 'Impromptus', NULL, 'Vier Impromptus', 'Impromptu', 'D', '935')
;
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, mov_title, work_directory, Werkverzeichnisnummer) VALUES
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, mov_title, work_directory, wd_number) VALUES
(84, 4, 1828, '94', 'Moments musicaux', NULL, 'Six moments musicaux', 'Moment musical', 'D', '780'),
(85, 3, 1834, '18', 'Walzer', 'Es-Dur', 'Grande Valse Brillante', NULL, NULL, NULL),
(86, 3, 1838, '34', 'Walzer', NULL, NULL, 'Walzer', NULL, NULL),
@@ -109,7 +109,7 @@ INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, mov_titl
(96, 3, 1830, NULL, 'Walzer', 'Es-Dur', 'Walzer', NULL, 'KK', 'IVa Nr. 14')
;
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, mov_title, work_directory, Werkverzeichnisnummer) VALUES
INSERT INTO work (id, comp_id, year, opus, collection, main_key, title, mov_title, work_directory, wd_number) VALUES
(97, 6, 1830, '19b', 'Lieder ohne Worte', NULL, 'Sechs Lieder ohne Worte', 'Lied ohne Worte', 'MWV', 'SD 5'),
(98, 6, 1834, '30', 'Lieder ohne Worte', NULL, 'Sechs Lieder ohne Worte', 'Lied ohne Worte', 'MWV', 'SD 9'),
(99, 6, 1837, '38', 'Lieder ohne Worte', NULL, 'Sechs Lieder ohne Worte', 'Lied ohne Worte', 'MWV', 'SD 16'),