- New Event photo and Photo description (migration 061), shown whole at the top of the event's page, as the front page's featured event, on featured cards, in newsletter picks and as the share preview. - The front page's featured event box is 16:9 (was 16:7). - Card background is only the faded background of the event's card. - Each event's photo starts as its card background, so nothing changes on screen until it's replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
1.1 KiB
SQL
20 lines
1.1 KiB
SQL
-- ═══════════════════════════════════════════════════════════════
|
|
-- 061 EVENTS: EVENT PHOTO
|
|
--
|
|
-- An event's own 16:9 photo, shown whole: at the top of its page, as
|
|
-- the front page's featured event, on featured cards, in newsletter
|
|
-- picks and as its page's share preview. photo_alt says what it
|
|
-- shows, for screen readers (blank: decoration).
|
|
--
|
|
-- card_image (029) goes back to being only the faded background of
|
|
-- the event's card, which crops it to the card's shape. Until now it
|
|
-- did both jobs, so each event's photo starts as its card
|
|
-- background, to keep the front page and previews as they were.
|
|
--
|
|
-- v_events selects e.*, so it carries the new columns as it is.
|
|
-- ═══════════════════════════════════════════════════════════════
|
|
|
|
ALTER TABLE events ADD COLUMN photo TEXT;
|
|
ALTER TABLE events ADD COLUMN photo_alt TEXT;
|
|
|
|
UPDATE events SET photo = card_image WHERE card_image IS NOT NULL;
|