DeviceDatabaseBackend: Add missing ebur128 fields

This commit is contained in:
Jonas Kvinge 2023-10-10 01:27:39 +02:00
parent 7e331a2055
commit 2706529006
2 changed files with 7 additions and 4 deletions

View File

@ -18,7 +18,7 @@ CREATE TABLE device_%deviceid_songs (
track INTEGER NOT NULL DEFAULT -1,
disc INTEGER NOT NULL DEFAULT -1,
year INTEGER NOT NULL DEFAULT -1,
originalyear INTEGER NOT NULL DEFAULT 0,
originalyear INTEGER NOT NULL DEFAULT -1,
genre TEXT,
compilation INTEGER NOT NULL DEFAULT 0,
composer TEXT,
@ -83,7 +83,10 @@ CREATE TABLE device_%deviceid_songs (
musicbrainz_track_id TEXT,
musicbrainz_disc_id TEXT,
musicbrainz_release_group_id TEXT,
musicbrainz_work_id TEXT
musicbrainz_work_id TEXT,
ebur128_integrated_loudness_lufs REAL,
ebur128_loudness_range_lu REAL
);
@ -96,4 +99,4 @@ CREATE VIRTUAL TABLE device_%deviceid_fts USING fts5(
tokenize = "unicode61 remove_diacritics 1"
);
UPDATE devices SET schema_version=4 WHERE ROWID=%deviceid;
UPDATE devices SET schema_version=5 WHERE ROWID=%deviceid;

View File

@ -36,7 +36,7 @@
#include "core/scopedtransaction.h"
#include "devicedatabasebackend.h"
const int DeviceDatabaseBackend::kDeviceSchemaVersion = 4;
const int DeviceDatabaseBackend::kDeviceSchemaVersion = 5;
DeviceDatabaseBackend::DeviceDatabaseBackend(QObject *parent)
: QObject(parent),