Fixed Bang scraper.

This commit is contained in:
DebaucheryLibrarian
2021-02-26 02:52:39 +01:00
parent 16a5d92efe
commit 20129eca5d
2 changed files with 10 additions and 9 deletions

View File

@@ -1001,7 +1001,8 @@ exports.up = knex => Promise.resolve()
// allow vim fold
return knex.raw(`
/* We need both the release entries and their search ranking, and PostGraphile does not seem to allow virtual foreign keys on function results.
* Using a view as a proxy for the search results allows us to get both a reference to the releases table, and the ranking */
* Using a view as a proxy for the search results allows us to get both a reference to the releases table, and the ranking.
* A composite type does not seem to be compatible with PostGraphile's @sortable. */
CREATE VIEW releases_search_results AS
SELECT NULL::integer as id, NULL::real as rank;