mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
sync the rest of the source models
refactor music download/storage to avoid re-download during reset add palylist to test server setup
This commit is contained in:
@@ -133,9 +133,8 @@ CREATE TABLE playlists(
|
||||
name TEXT NOT NULL COLLATE NOCASE,
|
||||
comment TEXT COLLATE NOCASE,
|
||||
cover_art TEXT,
|
||||
song_count INT NOT NULL,
|
||||
created DATETIME NOT NULL,
|
||||
changed DATETIME NOT NULL DEFAULT (strftime('%s', CURRENT_TIMESTAMP)),
|
||||
changed DATETIME NOT NULL,
|
||||
PRIMARY KEY (source_id, id),
|
||||
FOREIGN KEY (source_id) REFERENCES sources (id) ON DELETE CASCADE
|
||||
) WITH Playlist;
|
||||
@@ -184,7 +183,6 @@ CREATE TABLE songs(
|
||||
disc INT,
|
||||
starred DATETIME,
|
||||
genre TEXT,
|
||||
updated DATETIME NOT NULL DEFAULT (strftime('%s', CURRENT_TIMESTAMP)),
|
||||
PRIMARY KEY (source_id, id),
|
||||
FOREIGN KEY (source_id) REFERENCES sources (id) ON DELETE CASCADE
|
||||
) WITH Song;
|
||||
|
||||
Reference in New Issue
Block a user