Add website static image slots with page grouping and bilingual captions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-16 23:56:16 +03:30
co-authored by Cursor
parent b991a60cbc
commit 1c7678ce67
18 changed files with 1098 additions and 6 deletions
@@ -0,0 +1,19 @@
-- Fixed slot count: NULL = unlimited list; 1 for single; N for a row of N uploaders
ALTER TABLE website_image_slots
ADD COLUMN IF NOT EXISTS item_count INTEGER;
ALTER TABLE website_image_slots
DROP CONSTRAINT IF EXISTS website_image_slots_item_count_check;
ALTER TABLE website_image_slots
ADD CONSTRAINT website_image_slots_item_count_check
CHECK (item_count IS NULL OR item_count >= 1);
UPDATE website_image_slots
SET item_count = 1
WHERE kind = 'single' AND item_count IS NULL;
UPDATE website_image_slots
SET item_count = 2
WHERE slot_key = 'two-banner-row' AND kind = 'list';