diff --git a/src/main/resources/db/dump/insert_system_email_template_for_notification_mail_31_10_2024.sql b/src/main/resources/db/dump/insert_system_email_template_for_notification_mail_31_10_2024.sql
index d42b1b40..fbb2c1c1 100644
--- a/src/main/resources/db/dump/insert_system_email_template_for_notification_mail_31_10_2024.sql
+++ b/src/main/resources/db/dump/insert_system_email_template_for_notification_mail_31_10_2024.sql
@@ -1,14 +1,5 @@
-INSERT INTO gepafin_schema.system_email_template
-(
- id, template_name, "type", html_content, subject, "json", "system",
- is_deleted, created_date, updated_date
-)
-VALUES
-(
- 3,
- 'Instructional Aid/Request for Documentation Integration Template',
- 'DOCUMENTATION_INTEGRATION_REQUEST',
- '
+UPDATE gepafin_schema.system_email_template
+SET html_content = '
RICHIESTA INTEGRAZIONE DOCUMENTALE
@@ -31,26 +22,11 @@ VALUES
{{email_signature}}
- ',
- 'BANDO {{call_name}} - Domanda di concessione di finanziamento agevolato {{company_name}}',
- NULL,
- true,
- false,
- '2024-10-26 20:00:00',
- '2024-10-26 20:00:00'
-);
+ '
+WHERE "type" = 'DOCUMENTATION_INTEGRATION_REQUEST' AND "system" = true;
-INSERT INTO gepafin_schema.system_email_template
-(
- id, template_name, "type", html_content, subject, "json", "system",
- is_deleted, created_date, updated_date
-)
-VALUES
-(
- 4,
- 'Notification of Inadmissibility Due to Failure to Respond Template',
- 'INADMISSIBILITY_NOTIFICATION_DUE_TO_FAILURE',
- '
+UPDATE gepafin_schema.system_email_template
+SET html_content = '
Comunicazione di non ammissibilità per mancata risposta a richiesta integrazione documentale
@@ -64,26 +40,11 @@ VALUES
{{email_signature}}
- ',
- 'BANDO {{call_name}} - Domanda di finanziamento agevolato non ammessa {{company_name}}',
- NULL,
- true,
- false,
- '2024-10-26 20:00:00',
- '2024-10-26 20:00:00'
-);
+ '
+WHERE "type" = 'INADMISSIBILITY_NOTIFICATION_DUE_TO_FAILURE' AND "system" = true;
-INSERT INTO gepafin_schema.system_email_template
-(
- id, template_name, "type", html_content, subject, "json", "system",
- is_deleted, created_date, updated_date
-)
-VALUES
-(
- 5,
- 'Notification of Admissibility Template',
- 'ADMISSIBILITY_NOTIFICATION',
- '
+UPDATE gepafin_schema.system_email_template
+SET html_content = '
Buongiorno,
@@ -95,26 +56,11 @@ VALUES
{{email_signature}}
- ',
- 'BANDO {{call_name}} – Esito positivo istruttoria di ammissibilità {{company_name}}',
- NULL,
- true,
- false,
- '2024-10-26 20:00:00',
- '2024-10-26 20:00:00'
-);
+ '
+WHERE "type" = 'ADMISSIBILITY_NOTIFICATION' AND "system" = true;
-INSERT INTO gepafin_schema.system_email_template
-(
- id, template_name, "type", html_content, subject, "json", "system",
- is_deleted, created_date, updated_date
-)
-VALUES
-(
- 6,
- 'Notification of Inadmissibility Template',
- 'INADMISSIBILITY_NOTIFICATION',
- '
+UPDATE gepafin_schema.system_email_template
+SET html_content = '
Buongiorno,
@@ -128,11 +74,5 @@ VALUES
{{email_signature}}
- ',
- 'BANDO {{call_name}} – Esito negativo istruttoria di ammissibilità {{company_name}}',
- NULL,
- true,
- false,
- '2024-10-26 20:00:00',
- '2024-10-26 20:00:00'
-);
\ No newline at end of file
+ '
+WHERE "type" = 'INADMISSIBILITY_NOTIFICATION' AND "system" = true;