chore(*.sql): use sql-formatter for sql formatting
This commit is contained in:
parent
cf1ee4c97f
commit
1d7f13d1f5
63 changed files with 4432 additions and 2358 deletions
|
@ -6,16 +6,23 @@ SELECT
|
|||
ol.album_art,
|
||||
ol.artist_url,
|
||||
json_build_object(
|
||||
'title', ol.album_name,
|
||||
'image', ol.album_art,
|
||||
'url', ol.artist_url,
|
||||
'alt', CONCAT(ol.album_name, ' by ', ol.artist_name),
|
||||
'subtext', ol.artist_name
|
||||
'title',
|
||||
ol.album_name,
|
||||
'image',
|
||||
ol.album_art,
|
||||
'url',
|
||||
ol.artist_url,
|
||||
'alt',
|
||||
CONCAT(ol.album_name, ' by ', ol.artist_name),
|
||||
'subtext',
|
||||
ol.artist_name
|
||||
) AS grid,
|
||||
json_build_object(
|
||||
'open_graph_image',
|
||||
CASE
|
||||
WHEN ol.opengraph_image_album IS NOT NULL AND ol.opengraph_image_album != '' AND ol.opengraph_image_album != '/' THEN ol.opengraph_image_album
|
||||
WHEN ol.opengraph_image_album IS NOT NULL
|
||||
AND ol.opengraph_image_album != ''
|
||||
AND ol.opengraph_image_album != '/' THEN ol.opengraph_image_album
|
||||
ELSE NULL
|
||||
END
|
||||
) AS metadata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue