-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d61f5d
commit 2111eb6
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/main/resources/db/migration/V1_1__create_history_schema.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE OR REPLACE VIEW musicbrainz_enricher.release_work_queue AS | ||
SELECT * | ||
FROM musicbrainz_enricher.release_with_relationships r | ||
LEFT JOIN musicbrainz_enricher.release_history_entry rhe ON r.gid = rhe.release_gid | ||
WHERE rhe.release_gid IS NULL; | ||
|
||
CREATE OR REPLACE VIEW musicbrainz_enricher.release_group_work_queue AS | ||
SELECT * | ||
FROM musicbrainz_enricher.release_group_with_relationships rg | ||
LEFT JOIN musicbrainz_enricher.release_group_history_entry rghe ON rg.gid = rghe.release_group_gid | ||
WHERE rghe.release_group_gid IS NULL; |