Skip to content

Commit c1a0050

Browse files
committed
#9202 Remove obsolete NOTIFICATION rows before installing 3.5 email templates
1 parent f8b1f3d commit c1a0050

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

classes/migration/upgrade/v3_5_0/InstallEmailTemplates.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ protected function getEmailTemplateKeys(): array
3737

3838
public function up(): void
3939
{
40+
// remove the carried-over notifications template rows
41+
DB::table('email_templates_default_data')
42+
->where('email_key', 'NOTIFICATION')
43+
->delete();
44+
DB::table('email_templates')
45+
->where('email_key', 'NOTIFICATION')
46+
->delete();
47+
4048
$xmlDao = new XMLDAO();
4149

4250
$data = $xmlDao->parseStruct('registry/emailTemplates.xml', ['email']);

0 commit comments

Comments
 (0)