public function getCreationTimestamp(): int
{ return 1571660203;
} public function update(Connection
$connection): void
{ $defaultLangId =
$this->
getLanguageIdByLocale($connection, 'en-GB'
);
$deLangId =
$this->
getLanguageIdByLocale($connection, 'de-DE'
);
foreach ($this->
getMailTemplatesMapping() as $technicalName =>
$mailTemplate) { if ($defaultLangId !==
$deLangId) { $sql = <<<'SQL'
UPDATE `mail_template_type_translation` SET `name` = :name
WHERE `mail_template_type_id` = (SELECT `id` FROM `mail_template_type` WHERE `technical_name` = :technicalName)
AND `language_id` = :lang
SQL;
$connection->
executeStatement($sql,
['name' =>
$mailTemplate['name'
], 'technicalName' =>
$technicalName, 'lang' =>
$defaultLangId]);
} if ($defaultLangId !== Uuid::
fromHexToBytes(Defaults::LANGUAGE_SYSTEM
)) {