mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 13:38:15 -08:00
9 lines
222 B
SQL
9 lines
222 B
SQL
-- +goose Up
|
|
DELETE FROM artist_releases ar
|
|
WHERE NOT EXISTS (
|
|
SELECT 1
|
|
FROM artist_tracks at
|
|
JOIN tracks t ON at.track_id = t.id
|
|
WHERE at.artist_id = ar.artist_id
|
|
AND t.release_id = ar.release_id
|
|
);
|