ALTER TABLE songs ADD COLUMN artist_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE songs ADD COLUMN album_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE songs ADD COLUMN song_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_artists_songs ADD COLUMN artist_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_artists_songs ADD COLUMN album_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_artists_songs ADD COLUMN song_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_albums_songs ADD COLUMN artist_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_albums_songs ADD COLUMN album_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_albums_songs ADD COLUMN song_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_songs ADD COLUMN artist_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_songs ADD COLUMN album_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE tidal_songs ADD COLUMN song_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE playlist_items ADD COLUMN artist_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE playlist_items ADD COLUMN album_id INTEGER NOT NULL DEFAULT -1;

ALTER TABLE playlist_items ADD COLUMN song_id INTEGER NOT NULL DEFAULT -1;

UPDATE schema_version SET version=5;
