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

This commit is contained in:
Wojciech Kozlowski 2025-01-12 11:30:10 +01:00
parent c869489919
commit e23547d7ae
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> {
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,

Binary file not shown.