From 327aae513008d6cc7d2db540ea05450a3d91de50 Mon Sep 17 00:00:00 2001 From: Jan Bertram Date: Fri, 10 Nov 2023 08:24:00 +0100 Subject: [PATCH] changes recording datatype from BLOB to VARCHAR, as I made up my mind and think, that storing the recordings as files somewhere is better than putting them in the database. recording should point to the path where the file can be found. (Maybe is copied and renamed to a nice place within the userspace) --- repertoire.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repertoire.sql b/repertoire.sql index 81dcbde..6f831c3 100644 --- a/repertoire.sql +++ b/repertoire.sql @@ -49,7 +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, + recording VARCHAR(255), 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)