Fixed Bang scraper.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user