Remove circular reference within playlists table.

This commit is contained in:
Jonathan Bernard 2016-03-28 17:34:28 -05:00
parent f4d0289eab
commit 26f49d438d

View File

@ -53,7 +53,7 @@ CREATE TABLE playlists (
user_created BOOLEAN NOT NULL DEFAULT FALSE,
name VARCHAR NOT NULL,
media_file_count INTEGER NOT NULL DEFAULT 0,
copied_from_id INTEGER REFERENCES playlists(id) DEFAULT NULL,
copied_from_id INTEGER DEFAULT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
last_used TIMESTAMP NOT NULL DEFAULT NOW()
);