From d0083c127507a28b428cd8587723a2ee5353aaf7 Mon Sep 17 00:00:00 2001 From: blissful Date: Fri, 26 Apr 2024 14:31:47 -0400 Subject: [PATCH] fix tests --- rose/cache.sql | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rose/cache.sql b/rose/cache.sql index 6c4b876..a8f104c 100644 --- a/rose/cache.sql +++ b/rose/cache.sql @@ -178,8 +178,8 @@ CREATE VIRTUAL TABLE rules_engine_fts USING fts5 ( , edition , catalognumber , genre - , secondary_genres - , descriptors + , secondary_genre + , descriptor , label , releaseartist , trackartist @@ -242,7 +242,7 @@ CREATE VIEW releases_view AS , r.new , r.metahash , COALESCE(g.genres, '') AS genres - , COALESCE(s.secondary_genres, '') AS secondary_genres + , COALESCE(s.genres, '') AS secondary_genres , COALESCE(d.descriptors, '') AS descriptors , COALESCE(l.labels, '') AS labels , COALESCE(a.names, '') AS releaseartist_names @@ -251,7 +251,6 @@ CREATE VIEW releases_view AS LEFT JOIN genres g ON g.release_id = r.id LEFT JOIN secondary_genres s ON s.release_id = r.id LEFT JOIN descriptors d ON d.release_id = r.id - LEFT JOIN genres g ON g.release_id = r.id LEFT JOIN labels l ON l.release_id = r.id LEFT JOIN artists a ON a.release_id = r.id;