13 lines
677 B
SQL
13 lines
677 B
SQL
-- Mailjet replaces MailerSend as the transactional + marketing email provider
|
|
-- (DSGVO/EU data residency — Mailjet/Sinch hosts in Frankfurt/Belgium, while
|
|
-- MailerSend, Inc. is a US processor on the EU-US DPF). Mailjet authenticates
|
|
-- with a public/secret API key pair, so EmailSender gains a nullable apiSecret
|
|
-- column, and existing rows that still name "mailersend" are renamed to
|
|
-- "mailjet" so the provider switch resolves them.
|
|
|
|
ALTER TABLE "EmailSender" ADD COLUMN "apiSecret" TEXT;
|
|
|
|
UPDATE "EmailSender" SET "provider" = 'mailjet' WHERE "provider" = 'mailersend';
|
|
|
|
UPDATE "AppConfiguration" SET "emailProvider" = 'mailjet' WHERE "emailProvider" = 'mailersend';
|