Merged DDF Network with Porn World. Fixed and updated DDF/PW scraper.

This commit is contained in:
2020-07-12 22:36:53 +02:00
parent 70c60e93ac
commit a7707b7b28
66 changed files with 94 additions and 73 deletions

View File

@@ -174,7 +174,7 @@ exports.up = knex => Promise.resolve()
table.unique(['slug', 'type']);
table.text('alias');
table.specificType('alias', 'text[]');
table.text('url');
table.text('description');
@@ -820,6 +820,8 @@ exports.up = knex => Promise.resolve()
WHERE
name ILIKE ('%' || search || '%') OR
slug ILIKE ('%' || search || '%') OR
array_to_string(alias, '') ILIKE ('%' || search || '%') OR
replace(array_to_string(alias, ''), ' ', '') ILIKE ('%' || search || '%') OR
url ILIKE ('%' || search || '%')
$$ LANGUAGE SQL STABLE;