moves recording BLOB from table movement to table is_able_to_play, so that recordings can be stored per user, not per movement
This commit is contained in:
@@ -27,7 +27,6 @@ CREATE TABLE movement (
|
||||
numb VARCHAR(15),
|
||||
designation VARCHAR(63),
|
||||
mus_key VARCHAR(15),
|
||||
recording BLOB,
|
||||
PRIMARY KEY(work_id, mov_number),
|
||||
FOREIGN KEY(work_id) REFERENCES work(id)
|
||||
);
|
||||
@@ -50,6 +49,7 @@ CREATE TABLE is_able_to_play(
|
||||
mov_id INTEGER NOT NULL,
|
||||
pianist_id INTEGER NOT NULL,
|
||||
days_to_practice INTEGER DEFAULT 7,
|
||||
recording BLOB,
|
||||
PRIMARY KEY(work_id, mov_id, pianist_id),
|
||||
FOREIGN KEY(work_id, mov_id) REFERENCES movement(work_id, mov_number),
|
||||
FOREIGN KEY(pianist_id) REFERENCES pianist(id)
|
||||
|
||||
Reference in New Issue
Block a user