From e23547d7ae2996f66025dc92f44d4290ddedbc57 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 12 Jan 2025 11:30:10 +0100 Subject: [PATCH] Album title cannot be primary key --- src/external/database/sql/backend.rs | 2 +- tests/files/database/database.db | Bin 28672 -> 24576 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/database/sql/backend.rs b/src/external/database/sql/backend.rs index 3bc9cb6..f7af8fe 100644 --- a/src/external/database/sql/backend.rs +++ b/src/external/database/sql/backend.rs @@ -122,7 +122,7 @@ impl ISqlTransactionBackend for SqlTransactionSqliteBackend<'_> { fn create_albums_table(&self) -> Result<(), Error> { let mut stmt = self.prepare( "CREATE TABLE IF NOT EXISTS albums ( - title TEXT NOT NULL PRIMARY KEY, + title TEXT NOT NULL, lib_id JSON NOT NULL DEFAULT '\"None\"', mbid JSON NOT NULL DEFAULT '\"None\"', artist_name TEXT NOT NULL, diff --git a/tests/files/database/database.db b/tests/files/database/database.db index 9fe47ada8d16334914faad64d9c5f70de30597aa..bf7a0cbf4438fa9acd90b0d2e2f8a1ed4c9811c6 100644 GIT binary patch delta 121 zcmZp8z}Rqrae}lU69WSS8xX?)=R_T2aV7@6ssdjA9}KMA=?r}T__y+&`7Ez2BkShZyh4nOY@7e_F)2!L0bRwxAI`wv z#vjig&VQNzJAWDfJ^tyN1qJN+UD%n08H3e)ImDO^8G|xYQWZ)vQWbnM(=$r)GV{{e z`I(g&L-Ue~QWLX5&SVo{R%HxGEJ!U<2*^oHFHL2&X0B$O{65ZHfQ5@$k})_ZF)uTb bS%TS=aq@(C5iTYUW^vBoocyx