From 6331a0615f9c5e307a672539f3cba2f532116fd7 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 13 Apr 2020 23:24:35 +0200 Subject: [PATCH] Update device schema --- data/schema/device-schema.sql | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/data/schema/device-schema.sql b/data/schema/device-schema.sql index c4edc08ed..ea8754023 100644 --- a/data/schema/device-schema.sql +++ b/data/schema/device-schema.sql @@ -11,25 +11,25 @@ CREATE TABLE device_%deviceid_subdirectories ( CREATE TABLE device_%deviceid_songs ( - title TEXT NOT NULL, - album TEXT NOT NULL, - artist TEXT NOT NULL, - albumartist TEXT NOT NULL, + title TEXT, + album TEXT, + artist TEXT, + albumartist TEXT, track INTEGER NOT NULL DEFAULT -1, disc INTEGER NOT NULL DEFAULT -1, year INTEGER NOT NULL DEFAULT -1, originalyear INTEGER NOT NULL DEFAULT 0, - genre TEXT NOT NULL, - compilation INTEGER NOT NULL DEFAULT -1, - composer TEXT NOT NULL, - performer TEXT NOT NULL, - grouping TEXT NOT NULL, - comment TEXT NOT NULL, - lyrics TEXT NOT NULL, + genre TEXT, + compilation INTEGER NOT NULL DEFAULT 0, + composer TEXT, + performer TEXT, + grouping TEXT, + comment TEXT, + lyrics TEXT, - artist_id INTEGER NOT NULL DEFAULT -1, - album_id TEXT NOT NULL, - song_id INTEGER NOT NULL DEFAULT -1, + artist_id TEXT, + album_id TEXT, + song_id TEXT, beginning INTEGER NOT NULL DEFAULT 0, length INTEGER NOT NULL DEFAULT 0,