chore(*.psql/*.sql): update all *.psql to *.sql files
This commit is contained in:
parent
c9015a7f2b
commit
fc37600b8b
63 changed files with 21 additions and 41 deletions
12
queries/views/feeds/robots.sql
Normal file
12
queries/views/feeds/robots.sql
Normal file
|
@ -0,0 +1,12 @@
|
|||
CREATE OR REPLACE VIEW optimized_robots AS
|
||||
SELECT
|
||||
r.path,
|
||||
array_agg(ua.user_agent ORDER BY ua.user_agent) AS user_agents
|
||||
FROM
|
||||
robots AS r
|
||||
JOIN
|
||||
robots_user_agents AS rua ON r.id = rua.robots_id
|
||||
JOIN
|
||||
user_agents AS ua ON rua.user_agents_id = ua.id
|
||||
GROUP BY
|
||||
r.path;
|
Loading…
Add table
Add a link
Reference in a new issue