15 lines
419 B
SQL
15 lines
419 B
SQL
-- Bilingual titles + subtext on each static image item
|
|
|
|
ALTER TABLE website_image_slot_items
|
|
ADD COLUMN IF NOT EXISTS title_fa VARCHAR(255);
|
|
|
|
ALTER TABLE website_image_slot_items
|
|
ADD COLUMN IF NOT EXISTS title_en VARCHAR(255);
|
|
|
|
ALTER TABLE website_image_slot_items
|
|
ADD COLUMN IF NOT EXISTS subtext VARCHAR(500);
|
|
|
|
UPDATE website_image_slot_items
|
|
SET title_fa = title
|
|
WHERE title_fa IS NULL AND title IS NOT NULL;
|