Allow 0 file_id in third_party_trackrefs

The previous constraint of NOT NULL made it impossible to create a placeholder entry for later downloading. This uses a 0 default instead of the constraint and downloading as well as the green checkbox work again.
This commit is contained in:
Lucas Bickel 2017-03-18 11:37:45 +01:00
parent e3879b42a3
commit 7f00182913
5 changed files with 33 additions and 4 deletions

View file

@ -1 +1,3 @@
ALTER TABLE imported_podcast DROP COLUMN IF EXISTS album_override;
ALTER TABLE third_party_track_references ALTER COLUMN file_id DROP DEFAULT;
ALTER TABLE third_party_track_references ALTER COLUMN file_id SET NOT NULL;