Album title cannot be primary key
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 2m13s
Cargo CI / Lint (pull_request) Successful in 1m10s

This commit is contained in:
Wojciech Kozlowski 2025-01-12 11:27:21 +01:00
parent 912c99020a
commit fd9137bc10
2 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ impl ISqlTransactionBackend for SqlTransactionSqliteBackend<'_> {
fn create_albums_table(&self) -> Result<(), Error> { fn create_albums_table(&self) -> Result<(), Error> {
let mut stmt = self.prepare( let mut stmt = self.prepare(
"CREATE TABLE IF NOT EXISTS albums ( "CREATE TABLE IF NOT EXISTS albums (
title TEXT NOT NULL PRIMARY KEY, title TEXT NOT NULL,
lib_id JSON NOT NULL DEFAULT '\"None\"', lib_id JSON NOT NULL DEFAULT '\"None\"',
mbid JSON NOT NULL DEFAULT '\"None\"', mbid JSON NOT NULL DEFAULT '\"None\"',
artist_name TEXT NOT NULL, artist_name TEXT NOT NULL,

Binary file not shown.