RezinaLMS-BackEnd/db/migrations/000112_rezina_email_brand.down.sql
2026-10-19 17:59:34 +03:00

9 lines
471 B
SQL

-- Restore the previous email branding if this migration is rolled back.
UPDATE email_templates
SET name = REPLACE(name, 'Rezina', 'Yimaru Academy'),
subject = REPLACE(subject, 'Rezina', 'Yimaru Academy'),
body_text = REPLACE(body_text, 'Rezina', 'Yimaru Academy'),
body_html = REPLACE(body_html, 'Rezina', 'Yimaru Academy'),
updated_at = NOW()
WHERE slug IN ('otp', 'invitation', 'password_reset', 'welcome', 'custom_message', 'subscription_activated');